diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py index 32291dd3..242e2595 100644 --- a/aiogram/utils/exceptions.py +++ b/aiogram/utils/exceptions.py @@ -569,6 +569,14 @@ class CantTalkWithBots(Unauthorized): match = 'bot can\'t send messages to bots' +class GroupDeleted(Unauthorized): + match = 'Forbidden: the group chat was deleted' + + +class NotMemberOfSupergroup(Unauthorized): + match = 'Forbidden: bot is not a member of the supergroup chat' + + class NetworkError(TelegramAPIError): pass