From 77c18e8f5c24637530547a2781faf14640917216 Mon Sep 17 00:00:00 2001 From: Andrew <11490628+andrew000@users.noreply.github.com> Date: Thu, 2 Sep 2021 00:57:13 +0300 Subject: [PATCH] Add `Channel_private` exception {/mail.py:67} 2021-08-30 18:36:00,175 - WARNING - [MAIL] ::: EXC(Channel_private) ::: MRO([, , , , , ]) --- aiogram/utils/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py index 01f3bcf6..32291dd3 100644 --- a/aiogram/utils/exceptions.py +++ b/aiogram/utils/exceptions.py @@ -519,6 +519,10 @@ class ChatRestricted(BadRequest): match = 'Chat_restricted' +class ChannelPrivate(BadRequest): + match = 'Channel_private' + + class NotFound(TelegramAPIError, _MatchErrorMixin): __group = True