title: Problem deploying bot to Heroku (webhooks)
body: <p>I seem to have an issue deploying my Telegram bot to Heroku. it says Build succeeded but when I go to the bot nothings happens after commanding. the full version of code is <a href="https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/conversationbot.py" rel="nofollow noreferrer">this</a>, almost just main is different. without webhook and locally code works fine but when I want to deploy it on heroku nothing happens.</p>
  <pre><code>import logging
  from typing import Dict
  
  from telegram import ReplyKeyboardMarkup, Update, ReplyKeyboardRemove
  from telegram.ext import (
      Updater,
      CommandHandler,
      MessageHandler,
      Filters,
      ConversationHandler,
      CallbackContext,
  )
  from flask import Flask, request
  server = Flask(__name__)
  # Enable logging
  logging.basicConfig(
      format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO
  )
  
  logger = logging.getLogger(__name__)
  
  CHOOSING, TYPING_REPLY, TYPING_CHOICE = range(3)
  
  
  def main() -&gt; None:
      &quot;&quot;&quot;Run the bot.&quot;&quot;&quot;
      # Create the Updater and pass it your bot's token.
      updater = Updater(&quot;TOKEN&quot;)
  
      # Get the dispatcher to register handlers
      dispatcher = updater.dispatcher
  
      # Add conversation handler with the states CHOOSING, TYPING_CHOICE and TYPING_REPLY
      conv_handler = ConversationHandler(
          entry_points=[CommandHandler('start', start)],
          states={
              CHOOSING: [
                  MessageHandler(
                      Filters.regex('^(Age|Favourite colour|Number of siblings)$'), regular_choice
                  ),
                  MessageHandler(Filters.regex('^Something else...$'), custom_choice),
              ],
              TYPING_CHOICE: [
                  MessageHandler(
                      Filters.text &amp; ~(Filters.command | Filters.regex('^Done$')), regular_choice
                  )
              ],
              TYPING_REPLY: [
                  MessageHandler(
                      Filters.text &amp; ~(Filters.command | Filters.regex('^Done$')),
                      received_information,
                  )
              ],
          },
          fallbacks=[MessageHandler(Filters.regex('^Done$'), done)],
      )
  
      dispatcher.add_handler(conv_handler)
      updater.bot.setWebhook('https://psb6bot.herokuapp.com/' + &quot;TOKEN&quot;)
  
  
      # Run the bot until you press Ctrl-C or the process receives SIGINT,
      # SIGTERM or SIGABRT. This should be used most of the time, since
      updater.idle()
  
  
  if __name__ == &quot;__main__&quot;:
      server.run(host=&quot;0.0.0.0&quot;, port=int(os.environ.get('PORT', 5000)))
  </code></pre>
  <p>any solution why this is happening?</p>