From 97bca49c00ed7774a7cdd1f690c815f86907d8b3 Mon Sep 17 00:00:00 2001 From: byehack Date: Sun, 9 Oct 2022 02:28:05 +0330 Subject: [PATCH] ContinueHandling on asyncio_handler_backends --- telebot/asyncio_handler_backends.py | 15 ++++++++++++--- telebot/handler_backends.py | 1 - 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/telebot/asyncio_handler_backends.py b/telebot/asyncio_handler_backends.py index 34cc19a..a67a2a4 100644 --- a/telebot/asyncio_handler_backends.py +++ b/telebot/asyncio_handler_backends.py @@ -3,8 +3,6 @@ File with all middleware classes, states. """ - - class BaseMiddleware: """ Base class for middleware. @@ -96,6 +94,7 @@ class SkipHandler: def __init__(self) -> None: pass + class CancelUpdate: """ Class for canceling updates. @@ -106,4 +105,14 @@ class CancelUpdate: """ def __init__(self) -> None: - pass \ No newline at end of file + pass + + +class ContinueHandling: + """ + Class for continue updates in handlers. + Just return instance of this class + in handlers to continue process. + """ + def __init__(self) -> None: + pass diff --git a/telebot/handler_backends.py b/telebot/handler_backends.py index b4acc86..ca4cc35 100644 --- a/telebot/handler_backends.py +++ b/telebot/handler_backends.py @@ -273,4 +273,3 @@ class ContinueHandling: """ def __init__(self) -> None: pass -