delete chat id

This commit is contained in:
Administrator 2022-10-22 12:06:07 +03:00
parent 008c2a8707
commit 4b59a7bf98

View File

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