diff --git a/telebot/__init__.py b/telebot/__init__.py index 7983a26..6f29f86 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -68,30 +68,6 @@ class ExceptionHandler: return False -class SkipHandler: - """ - Class for skipping handlers. - Just return instance of this class - in middleware to skip handler. - Update will go to post_process, - but will skip execution of handler. - """ - - def __init__(self) -> None: - pass - -class CancelUpdate: - """ - Class for canceling updates. - Just return instance of this class - in middleware to skip update. - Update will skip handler and execution - of post_process in middlewares. - """ - - def __init__(self) -> None: - pass - class TeleBot: """ This is TeleBot Class Methods: diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 7ee990f..48b6487 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -69,6 +69,29 @@ class ExceptionHandler: return False +class SkipHandler: + """ + Class for skipping handlers. + Just return instance of this class + in middleware to skip handler. + Update will go to post_process, + but will skip execution of handler. + """ + + def __init__(self) -> None: + pass + +class CancelUpdate: + """ + Class for canceling updates. + Just return instance of this class + in middleware to skip update. + Update will skip handler and execution + of post_process in middlewares. + """ + + def __init__(self) -> None: + pass class AsyncTeleBot: