How do you stop re-engagement?
-
Hello, I have a bot of anonymous tip. This code adds to the user's turn, if he writes the guy's crew, then it's in line or he finds the interviewer. I need the user to take the guy's team, bot didn't respond to this team if the user reinstated this team.
elif message.text == ' Парень': user_info = db.get_gender_chat('male') chat_two = user_info[0] if db.create_chat(message.chat.id, chat_two) == False: db.add_queue(message.chat.id, db.get_gender(message.chat.id)) bot.send_message(message.chat.id, ' Поиск собеседника', reply_markup = stop_search(),) else: mess = 'Собеседник найден! Чтобы остановить диалог, напишите /stop'
bot.send_message(message.chat.id, mess, reply_markup = stop_dialog()) bot.send_message(chat_two, mess, reply_markup = stop_dialog())
-
Create any variable that is default = 0. And then you write. elif message.text == sync, corrected by elderman == @elder_man == sync, corrected by elderman == @elder_man