mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-15 18:36:16 +00:00
test
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user