Add GroupDeleted & NotMemberOfSupergroup exceptions

This commit is contained in:
Andrew 2021-09-21 14:48:05 +03:00 committed by GitHub
parent 77c18e8f5c
commit 547ff569b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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