2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Fix DeletedMessagesHandler docstrings

This commit is contained in:
Dan 2018-06-20 12:19:32 +02:00 committed by GitHub
parent c5fb0d6079
commit afc0c87cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,14 +20,14 @@ from .handler import Handler
class DeletedMessagesHandler(Handler):
"""The Deleted Message handler class. Used to handle deleted messages coming from any chat
"""The Deleted Messages handler class. Used to handle deleted messages coming from any chat
(private, group, channel). It is intended to be used with
:meth:`add_handler() <pyrogram.Client.add_handler>`
Args:
callback (``callable``):
Pass a function that will be called when a new Message arrives. It takes *(client, message)*
as positional arguments (look at the section below for a detailed description).
Pass a function that will be called when one or more Messages have been deleted.
It takes *(client, messages)* as positional arguments (look at the section below for a detailed description).
filters (:obj:`Filters <pyrogram.Filters>`):
Pass one or more filters to allow only a subset of messages to be passed
@ -37,8 +37,8 @@ class DeletedMessagesHandler(Handler):
client (:obj:`Client <pyrogram.Client>`):
The Client itself, useful when you want to call other API methods inside the message handler.
messages (:obj:`Message <pyrogram.Messages>`):
The received messages.
messages (:obj:`Messages <pyrogram.Messages>`):
The deleted messages.
"""
def __init__(self, callback: callable, filters=None):