From 5b492bae9de427b921a10e8e74fa8aed77282e26 Mon Sep 17 00:00:00 2001 From: JosXa Date: Mon, 30 Apr 2018 16:32:21 +0200 Subject: [PATCH] Docstring --- pyrogram/client/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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