mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
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:
parent
c439ec88c8
commit
e2b54301ca
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue