Small fix

This commit is contained in:
Nikita Tyukalov, ASUS, Linux
2025-11-25 05:10:50 +03:00
parent 99a5786112
commit 73cc8fdcbd

View File

@@ -643,7 +643,7 @@ async def msg_incoming(session, event) -> None:
if time.time() < cfg['unlock_timestamp']: if time.time() < cfg['unlock_timestamp']:
return return
await msg.delete() await msg.delete()
cfg['chats'][data['target_chat_id']]['deleted_count'] += 1 cfg['chats'][chat_id]['deleted_count'] += 1
except BadRequestError: except BadRequestError:
pass pass
except ForbiddenError as e: except ForbiddenError as e: