diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index b40d9881..e1a4c9a4 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2514,10 +2514,11 @@ class Client: For a contact that exists in your Telegram address book you can use his phone number (str). For a private channel/supergroup you can use its *t.me/joinchat/* link. - action (``callable``): + action (``ChatAction`` | ``str``): Type of action to broadcast. - Choose one from the :class:`ChatAction ` class, + Choose one from the :class:`ChatAction ` enumeration, depending on what the user is about to receive. + You can also provide a string (e.g. "typing"). progress (``int``, optional): Progress of the upload process. @@ -2527,6 +2528,7 @@ class Client: Raises: :class:`Error ` + :class:`ValueError`: If the provided string is not a valid ChatAction """ # Resolve Enum type