mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add GroupDeleted & NotMemberOfSupergroup exceptions
This commit is contained in:
parent
77c18e8f5c
commit
547ff569b8
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue