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

Update telebot/handler_backends.py

This commit is contained in:
_run 2022-10-11 19:05:55 +04:00 committed by GitHub
parent 97bca49c00
commit 982e642c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,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