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:
parent
97bca49c00
commit
982e642c73
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user