2 months ago
Hello,
My Python Telegram Bot application deploys and runs successfully (the logs are clean and show it is active), but it is completely unresponsive to any commands on Telegram.
We have verified 100% that the code and all environment variables, including a brand new Telegram Bot Token, are correct.
The symptom (a running but unresponsive bot) suggests that my container's network connection to the Telegram API at api.telegram.org is being blocked.
Can you please investigate and ensure my container has unrestricted network access to the Telegram API?
You can find your Project ID in the URL of your browser (https://railway.com/project/648904a7-48ed-4d94-a59d-c5564755143e?environmentId=7fc33e9b-c6ba-42d8-aafc-23c1bbbd1f7f).
4 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 2 months ago
2 months ago
Anyone from the team can reply, pls? I'm stuck here.
2 months ago
Hey there! Can you look into SSHing into the container and running a curl command to api.telegram.org? https://docs.railway.com/guides/cli#ssh
Would be able to nail down whether or not is a networking or service issue 
2 months ago
You could also try exposing a public "healthcheck" endpoint, e.g. /healthz (see docs) - then try it from curl to see if your app is reachable from the outside. Per @error's comment above, using railway ssh then trying curl would be a way to confirm if the app can reach external URLs.