2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-24 02:47:29 +00:00

Update UpdateHandling page

This commit is contained in:
Dan 2018-06-22 13:32:55 +02:00
parent 142a27f52a
commit dd156e0f7a

View File

@ -32,8 +32,7 @@ We shall examine the :obj:`MessageHandler <pyrogram.MessageHandler>`, which will
print(message) print(message)
app.start() app.run()
app.idle()
- If you prefer not to use decorators, there is an alternative way for registering Handlers. - If you prefer not to use decorators, there is an alternative way for registering Handlers.
This is useful, for example, when you want to keep your callback functions in separate files. This is useful, for example, when you want to keep your callback functions in separate files.
@ -51,8 +50,7 @@ We shall examine the :obj:`MessageHandler <pyrogram.MessageHandler>`, which will
app.add_handler(MessageHandler(my_handler)) app.add_handler(MessageHandler(my_handler))
app.start() app.run()
app.idle()
Using Filters Using Filters
------------- -------------