Fix spelling: an handler -> a handler

Thanks @rastamanjohn for the hint
This commit is contained in:
Dan 2019-05-20 19:19:26 +02:00
parent 5975a41090
commit 8866a749e0
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ Update Handlers
Handlers are used to instruct Pyrogram about which kind of updates you'd like to handle with your callback functions. Handlers are used to instruct Pyrogram about which kind of updates you'd like to handle with your callback functions.
For a much more convenient way of registering callback functions have a look at `Decorators <Decorators.html>`_ instead. For a much more convenient way of registering callback functions have a look at `Decorators <Decorators.html>`_ instead.
In case you decided to manually create an handler, use :meth:`add_handler() <pyrogram.Client.add_handler>` to register In case you decided to manually create a handler, use :meth:`add_handler() <pyrogram.Client.add_handler>` to register
it. it.
.. code-block:: python .. code-block:: python

View File

@ -15,8 +15,8 @@ using `Handlers <../api/handlers>`_.
Each handler deals with a specific event and once a matching update arrives from Telegram, your registered callback Each handler deals with a specific event and once a matching update arrives from Telegram, your registered callback
function will be called back by the framework and its body executed. function will be called back by the framework and its body executed.
Registering an Handler Registering a Handler
---------------------- ---------------------
To explain how handlers 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 <pyrogram.MessageHandler>`, which will be in charge for handling :obj:`Message <pyrogram.Message>` :obj:`MessageHandler <pyrogram.MessageHandler>`, which will be in charge for handling :obj:`Message <pyrogram.Message>`