From 1ffa6b58f83f68617c9e0a11acc5458995e4ebb3 Mon Sep 17 00:00:00 2001 From: mihalin Date: Fri, 10 Sep 2021 22:59:07 +0300 Subject: [PATCH] test --- server/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/custom.py b/server/custom.py index 388e78a..b6eb62c 100644 --- a/server/custom.py +++ b/server/custom.py @@ -52,7 +52,7 @@ async def message_handler(message, *args, **kwargs): chat_id = int(chat_id) try: await message.copy_to(chat_id) - except exceptions.MessageError: + except (exceptions.MessageError, exceptions.BotBlocked): await message.reply("Невозможно переслать сообщение: возможно, автор заблокировал бота") return else: