From 54ff739c820db912b8cb8d7c4eb9c36c5cedbeed Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 15 Feb 2018 21:28:45 +0100 Subject: [PATCH] Update docs --- docs/source/pyrogram/Client.rst | 3 ++- docs/source/resources/UpdateHandling.rst | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/source/pyrogram/Client.rst b/docs/source/pyrogram/Client.rst index 954900d8..b4bb1270 100644 --- a/docs/source/pyrogram/Client.rst +++ b/docs/source/pyrogram/Client.rst @@ -14,8 +14,9 @@ Client start stop idle - set_event_handler + set_update_handler send + resolve_peer get_me send_message forward_messages diff --git a/docs/source/resources/UpdateHandling.rst b/docs/source/resources/UpdateHandling.rst index de390d7e..594bdee4 100644 --- a/docs/source/resources/UpdateHandling.rst +++ b/docs/source/resources/UpdateHandling.rst @@ -29,8 +29,9 @@ Here's a complete example on how to set it up: main() The last line of the main() function, :obj:`client.idle() `, is not strictly necessary but highly -recommended; it will block your script execution until you press :obj:`CTRL`:obj:`C` and automatically call the -:obj:`stop ` method which stops the Client and gently close the underlying connection. +recommended when using the update handler; it will block your script execution until you press :obj:`CTRL`:obj:`C` and +automatically call the :obj:`stop ` method which stops the Client and gently close the underlying +connection. Examples -------- @@ -41,6 +42,7 @@ Examples from pyrogram.api import types + def update_handler(client, update, users, chats): if isinstance(update, types.UpdateNewMessage): # Filter by UpdateNewMessage (PM and Groups) message = update.message # type: types.Message