Error: Bad Gateway
This error can be displayed both in the account settings and when trying to reply to messages from Telegram.
This situation occurs when there are some problems with the Telegram server on which the bot is located, and the Telegram API returns this error in response to requests for your bot (even just getting information about the bot).
Or, when you or your developers have moved the bot to a"local" serverthat is managed independently, and this server, just like in the situation above, is not responding.
Unfortunately, Telegram does not have the technical capability to check which server the bot is located on.
If you know that the bot is located on your local server, you need to contact those who performed the bot migration to have them check its availability.
If the bot is on a shared Telegram server and you encounter this error, then you simply need to wait until the server returns to normal operation. As a rule, such errors are short-term (up to 1-2 hours).