mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
handle deactivated error
This commit is contained in:
parent
24710d6b5f
commit
a504d38418
@ -86,7 +86,7 @@ async def message_handler(message: types.Message, *args, **kwargs):
|
||||
|
||||
try:
|
||||
await message.copy_to(chat_id)
|
||||
except (exceptions.MessageError, exceptions.BotBlocked):
|
||||
except (exceptions.MessageError, exceptions.Unauthorized):
|
||||
await message.reply("<i>Невозможно переслать сообщение (автор заблокировал бота?)</i>",
|
||||
parse_mode="HTML")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user