ашч
This commit is contained in:
parent
6b1b6d1da8
commit
226bbd5bf7
3
main.py
3
main.py
@ -184,14 +184,11 @@ def _process_message(bot: Bot, m: Message):
|
||||
if r:
|
||||
user.update_from_message(r)
|
||||
except Unauthorized:
|
||||
try:
|
||||
name = conn.root.subscribers[uid].name
|
||||
del conn.root.subscribers[uid]
|
||||
commit()
|
||||
bot.send_message(MANAGEMENT_CHAT, f'<a href="tg://user?id={uid}">{name}</a> был удален '
|
||||
f'из-за блокировки бота', parse_mode='html')
|
||||
except Exception:
|
||||
sentry_sdk.capture_exception()
|
||||
except TelegramError:
|
||||
sentry_sdk.capture_exception()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user