Add ChatRestricted exception

`{/mail.py:67} 2021-08-30 11:49:13,333 - WARNING - [MAIL] ::: EXC(Chat_restricted) ::: MRO([<class 'aiogram.utils.exceptions.BadRequest'>, <class 'aiogram.utils.exceptions.TelegramAPIError'>, <class 'Exception'>, <class 'BaseException'>, <class 'aiogram.utils.exceptions._MatchErrorMixin'>, <class 'object'>])`
This commit is contained in:
Andrew 2021-09-02 00:49:48 +03:00 committed by GitHub
parent c439ec88c8
commit e2b54301ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -515,6 +515,10 @@ class NoRightsToSendMessage(BadRequest):
match = 'Have no rights to send a message'
class ChatRestricted(BadRequest):
match = 'Chat_restricted'
class NotFound(TelegramAPIError, _MatchErrorMixin):
__group = True