title: Telegram Bot: Wrong response from the webhook: 404 Bad Request
body: <p>I have my telegram bot deployed on Heroku. Bot used to work fine, but at some point it just stopped sending messages when receiving commands. here is the answer of getWebHookInfo:</p>
  <blockquote>
  <p>{&quot;ok&quot;:true,&quot;result&quot;:{&quot;url&quot;:&quot;https://telegram-rainbow-bot.herokuapp.com:443/api/message/update&quot;,&quot;has_custom_certificate&quot;:false,&quot;pending_update_count&quot;:1,&quot;last_error_date&quot;:1613676609,&quot;last_error_message&quot;:&quot;Wrong response from the webhook: 404 Not Found&quot;,&quot;max_connections&quot;:40,&quot;ip_address&quot;:&quot;54.171.62.111&quot;}}</p>
  </blockquote>
  <p>I have no idea what happened. Bot worked as usual, and suddenly that happens. Bot is using port 443 for https requests. Also sometimes logs say &quot;Failed to determine the https port for redirect&quot;.</p>