title: Python Telegram API -- how do I use ForceReply?
body: <p>I would like to have a little Telegram bot in python where a command is issued by the user, the bot asks a question and reacts depending on the answer. The official Telegram API mentions that this is possible using ForceReply(), e.g. for creating polls step by step, see here <a href="https://core.telegram.org/bots/api#forcereply" rel="nofollow noreferrer">Official Telegram API # ForceReply</a>.</p>
  <p>I wrote the following code:</p>
  <pre><code>def test_function(update: Update, context: CallbackContext) -&gt; None:
      msg = context.bot.send_message(chat_id=update.message.chat_id, 
                                     text=&quot;Please enter some text.&quot;,
                                     reply_markup=telegram.ForceReply(True))
  
  if __name__ == '__main__':
      dispatcher.add_handler(CommandHandler(&quot;test&quot;, test_function))
      updater.start_polling()
      updater.idle()
  </code></pre>
  <p>So when <code>/test</code> is issued by the user, he is asked to enter some text and due to the <code>ForceReply(True)</code>, the user is forced to reply to the message. But how do I get the result of this reply, i.e. the text replied by the user? There is no hint in the API docs and I also spent some time searching on the internet and on SO but didn't find anything. Therefore, most likely the answer is simple and clear but I just don't get it at the moment.</p>
  <p>Any kind of help is appreciated.</p>