|
|
|
@ -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()
|
|
|
|
|
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 TelegramError:
|
|
|
|
|
sentry_sdk.capture_exception()
|
|
|
|
|
|
|
|
|
|