From afc0c87cd3e1d1cac3b92524f27e3d9456b48d4a Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 20 Jun 2018 12:19:32 +0200 Subject: [PATCH] Fix DeletedMessagesHandler docstrings --- pyrogram/client/handlers/deleted_messages_handler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyrogram/client/handlers/deleted_messages_handler.py b/pyrogram/client/handlers/deleted_messages_handler.py index 29bed259..6a1f7689 100644 --- a/pyrogram/client/handlers/deleted_messages_handler.py +++ b/pyrogram/client/handlers/deleted_messages_handler.py @@ -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() ` 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 `): 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 `): The Client itself, useful when you want to call other API methods inside the message handler. - messages (:obj:`Message `): - The received messages. + messages (:obj:`Messages `): + The deleted messages. """ def __init__(self, callback: callable, filters=None):