From 81f090cce6e163c69e53a70a7eab84d87fb6374a Mon Sep 17 00:00:00 2001 From: _run Date: Tue, 11 Oct 2022 19:15:01 +0400 Subject: [PATCH] Update asyncio_handler_backends.py --- telebot/asyncio_handler_backends.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/telebot/asyncio_handler_backends.py b/telebot/asyncio_handler_backends.py index a67a2a4..6a1f2ca 100644 --- a/telebot/asyncio_handler_backends.py +++ b/telebot/asyncio_handler_backends.py @@ -113,6 +113,19 @@ class ContinueHandling: Class for continue updates in handlers. Just return instance of this class 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: pass