1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update asyncio_handler_backends.py

This commit is contained in:
_run 2022-10-11 19:15:01 +04:00 committed by GitHub
parent 5d16b8bd4a
commit 81f090cce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,19 @@ class ContinueHandling:
Class for continue updates in handlers. Class for continue updates in handlers.
Just return instance of this class Just return instance of this class
in handlers to continue process. in handlers to continue process.
.. code-block:: python3
:caption: Example of using ContinueHandling
@bot.message_handler(commands=['start'])
def start(message):
bot.send_message(message.chat.id, 'Hello World!')
return ContinueHandling()
@bot.message_handler(commands=['start'])
def start2(message):
bot.send_message(message.chat.id, 'Hello World2!')
""" """
def __init__(self) -> None: def __init__(self) -> None:
pass pass