From 4b59a7bf982033cc6254aa16f7052d9b27c89a08 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 22 Oct 2022 12:06:07 +0300 Subject: [PATCH] delete chat id --- helpers/answer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/answer.py b/helpers/answer.py index e06123b..8764843 100644 --- a/helpers/answer.py +++ b/helpers/answer.py @@ -162,7 +162,7 @@ class Answer(BaseAnswer): def handle_state_reset(self, message: Message, user: User): if message.text == "Да": - mongo.users_collection.delete_one({"hse_id": user.hse_id}) + mongo.users_collection.delete_one({"chat_id": user.chat_id}) bot.send_message(user.chat_id, "Настройки сброшены, ждем твоего возвращения", reply_markup=again_keyboard()) elif message.text == "Нет": bot.send_message(user.chat_id, "Возращаюсь к прежнему режиму", reply_markup=main_keyboard())