This commit is contained in:
bakatrouble 2019-03-15 17:43:17 +03:00
parent ec8d410f7c
commit 6b1b6d1da8

View File

@ -185,8 +185,8 @@ def _process_message(bot: Bot, m: Message):
user.update_from_message(r)
except Unauthorized:
try:
name = conn.root.users[uid].name
del conn.root.users[uid]
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')