From ae67814abbd0f7a34b1364dd91546e526ab680cf Mon Sep 17 00:00:00 2001 From: Oleg A Date: Wed, 28 Oct 2020 19:11:43 +0300 Subject: [PATCH] fixed BotKicked match (#445) --- aiogram/utils/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py index fe2cc144..cc1885dd 100644 --- a/aiogram/utils/exceptions.py +++ b/aiogram/utils/exceptions.py @@ -515,7 +515,7 @@ class Unauthorized(TelegramAPIError, _MatchErrorMixin): class BotKicked(Unauthorized): - match = 'bot was kicked from a chat' + match = 'bot was kicked from' class BotBlocked(Unauthorized):