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())