delete chat id
This commit is contained in:
parent
008c2a8707
commit
4b59a7bf98
@ -162,7 +162,7 @@ class Answer(BaseAnswer):
|
|||||||
|
|
||||||
def handle_state_reset(self, message: Message, user: User):
|
def handle_state_reset(self, message: Message, user: User):
|
||||||
if message.text == "Да":
|
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())
|
bot.send_message(user.chat_id, "Настройки сброшены, ждем твоего возвращения", reply_markup=again_keyboard())
|
||||||
elif message.text == "Нет":
|
elif message.text == "Нет":
|
||||||
bot.send_message(user.chat_id, "Возращаюсь к прежнему режиму", reply_markup=main_keyboard())
|
bot.send_message(user.chat_id, "Возращаюсь к прежнему режиму", reply_markup=main_keyboard())
|
||||||
|
Loading…
Reference in New Issue
Block a user