fix
This commit is contained in:
parent
ec8d410f7c
commit
6b1b6d1da8
4
main.py
4
main.py
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user