@bot.message_handler(regexp='что то')
def handler_start_help(message):
bot.send_message(message.chat.id, 'Вопрос?')
contexts = {}
def default_handler(chat_id, bot):
contexts[chat_id] = "other"
...
def extra_handler(chat_id, bot):
...
@bot.message_handler
def handler(...):
...
context = contexts.get(chat_id, "default")
handlers = {
"default": default_handler,
"other": extra_handler
}
handlers[context](chat_id, bot)