title: python-telegram-bot, ConversationHandler(states) goes to the last key,ignore the rest
body: <p>I want to write a simple bot for registration, but I made a mistake and do not know how to fix it, please help me.
  my problem is that no messages are sent from such functions: name_handler, age_handler.</p>
  <pre><code>from telegram import Update
  from telegram import (ReplyKeyboardMarkup, ReplyKeyboardRemove)
  
  from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters,
                            ConversationHandler)
  
  NAME, GENDER, AGE = 0, 0, 0
  user_data = {}
  
  
  def start_handler(update: Update, context):
      update.message.reply_text(
          &quot;enter ur name&quot;,
          reply_markup=ReplyKeyboardRemove(),
      )
      return NAME
  
  
  def name_handler(update: Update, context):
      user_data[NAME] = update.message.text
  
      update.message.reply_text(&quot;enter ur gender&quot;)
  
      return GENDER
  
  
  def age_handler(update: Update, context):
      user_data[GENDER] = update.message.text
      update.message.reply_text(&quot;enter ur age&quot;)
  
      return AGE
  
  
  def finish_handler(update: Update, context):
      user_data[AGE] = update.message.text
  
      update.message.reply_text(f&quot;registered successfully, you are {user_data[NAME]}, {user_data[GENDER]}, &quot;
                                f&quot;{user_data[AGE]}&quot;)
  
      return ConversationHandler.END
  
  
  def cancel_handler(update: Update, context):
      print(&quot;bye&quot;)
  
  
  def main():
      updater = Updater(
          token=&quot;token&quot;,
          use_context=True,
      )
  
      dp = updater.dispatcher
  
      conv_handler = ConversationHandler(
          entry_points=[
              CommandHandler(&quot;start&quot;, start_handler),
          ],
          states={
              NAME: [MessageHandler(Filters.all, name_handler)],
              GENDER: [MessageHandler(Filters.all, age_handler)],
              AGE: [MessageHandler(Filters.all, finish_handler)]
          },
          fallbacks=[CommandHandler(&quot;cancel&quot;, cancel_handler)],
      )
  
      dp.add_handler(conv_handler)
  
      updater.start_polling()
      updater.idle()
  
  
  main()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/vh1gv.png" rel="nofollow noreferrer">after &quot;enter ur name&quot; must be &quot;enter ur gender&quot; but telegram wrote &quot;registered successfully&quot;</a></p>