From 474388d8a4d391252bfa5a26db3527c2c94fb2fa Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 14 Oct 2018 12:28:00 +0200 Subject: [PATCH] Small improvements on UpdateHandling.rst --- docs/source/resources/UpdateHandling.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/resources/UpdateHandling.rst b/docs/source/resources/UpdateHandling.rst index 781a48af..12afe324 100644 --- a/docs/source/resources/UpdateHandling.rst +++ b/docs/source/resources/UpdateHandling.rst @@ -2,15 +2,15 @@ Update Handling =============== Updates are events that happen in your Telegram account (incoming messages, new channel posts, new members join, ...) -and can be handled by registering one or more callback functions in your app by using an `Handler <../pyrogram/Handlers.html>`_. +and can be handled by registering one or more callback functions in your app by using `Handlers <../pyrogram/Handlers.html>`_. To put it simply, whenever an update is received from Telegram it will be dispatched and your previously defined callback -function(s) will be called back with the update itself as argument. +function(s) matching it will be called back with the update itself as argument. Registering an Handler ---------------------- -To explain how `Handlers <../pyrogram/Handlers.html>`_ work let's have a look at the most used one, the +To explain how handlers work let's have a look at the most used one, the :obj:`MessageHandler `, which will be in charge for handling :obj:`Message ` updates coming from all around your chats. Every other handler shares the same setup logic; you should not have troubles settings them up once you learn from this section.