From 54683256ce1207b8a11bde7715f698554f30fca4 Mon Sep 17 00:00:00 2001 From: Denis Date: Sun, 27 Jul 2025 02:09:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=82=D0=B8=D0=BF=D1=8B=20=D1=81=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=82=D0=B8=D0=B9:=20bot=5Fstopped,=20dialog=5Fcleared,?= =?UTF-8?q?=20dialog=5Fmuted,=20dialog=5Funmuted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maxapi/methods/types/getted_updates.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/maxapi/methods/types/getted_updates.py b/maxapi/methods/types/getted_updates.py index fa40ac0..97ce595 100644 --- a/maxapi/methods/types/getted_updates.py +++ b/maxapi/methods/types/getted_updates.py @@ -6,6 +6,7 @@ from ...enums.update import UpdateType from ...types.updates.bot_added import BotAdded from ...types.updates.bot_removed import BotRemoved from ...types.updates.bot_started import BotStarted +from ...types.updates.bot_stopped import BotStopped from ...types.updates.chat_title_changed import ChatTitleChanged from ...types.updates.message_callback import MessageCallback from ...types.updates.message_chat_created import MessageChatCreated @@ -14,6 +15,9 @@ from ...types.updates.message_edited import MessageEdited from ...types.updates.message_removed import MessageRemoved from ...types.updates.user_added import UserAdded from ...types.updates.user_removed import UserRemoved +from ...types.updates.dialog_cleared import DialogCleared +from ...types.updates.dialog_muted import DialogMuted +from ...types.updates.dialog_unmuted import DialogUnmuted if TYPE_CHECKING: from ...bot import Bot @@ -31,6 +35,10 @@ UPDATE_MODEL_MAPPING = { UpdateType.MESSAGE_REMOVED: MessageRemoved, UpdateType.USER_ADDED: UserAdded, UpdateType.USER_REMOVED: UserRemoved, + UpdateType.BOT_STOPPED: BotStopped, + UpdateType.DIALOG_CLEARED: DialogCleared, + UpdateType.DIALOG_MUTED: DialogMuted, + UpdateType.DIALOG_UNMUTED: DialogUnmuted }