skip to Main Content

PyTelegramBotApi – how to stop one function if other function is running? – Telegram API

I am trying to do an optional input, and have this code bot.send_chat_action(message.from_user.id, 'typing') markup = types.InlineKeyboardMarkup() markup.add(types.InlineKeyboardButton("Лечу только в одну сторону", callback_data="one_way")) msg = bot.send_message(message.from_user.id, '✅Хорошо. Теперь введите дату возвращения:', reply_markup=markup) bot.register_next_step_handler(msg, get_return_date) This code sends user a message…

VIEW QUESTION
Back To Top
Search