mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update async_telebot.py
This commit is contained in:
parent
a9b422783f
commit
bfc0b8ecd5
@ -69,30 +69,6 @@ class ExceptionHandler:
|
|||||||
return False
|
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:
|
class AsyncTeleBot:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user