Add Channel_private exception

{/mail.py:67} 2021-08-30 18:36:00,175 - WARNING - [MAIL] ::: EXC(Channel_private) ::: 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:57:13 +03:00 committed by GitHub
parent e2b54301ca
commit 77c18e8f5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -519,6 +519,10 @@ class ChatRestricted(BadRequest):
match = 'Chat_restricted'
class ChannelPrivate(BadRequest):
match = 'Channel_private'
class NotFound(TelegramAPIError, _MatchErrorMixin):
__group = True