ValueError: 'api.telegram.org' does not appear to be an IPv4 or IPv6 address
I tried to deploy a telegram bot using https://python-telegram-bot.org
seems that telegram doesn;t like railway server?
python-telegram-bot
A Python framework for the Telegram Bot API
Solution:Jump to solution
but it's very possible that telegram is blocking you, unfortunately there's not much you can do about that without railway supporting static ip's (yet) besides deploy your code into another project and hoped you don't get the same banned shared ip
15 Replies
Project ID:
69cef118-decb-439c-b240-1b205cf11059
69cef118-decb-439c-b240-1b205cf11059
is the image based on Alpine?
if so, you can try adding ENABLE_ALPINE_PRIVATE_NETWORKING=true to your env
It's python:3.12-slim so it's FROM debian:12-slim but let me try that env
btw I love you guys' work on railway π
I get the same error
then i dont know, hope Brody/Fragly have a good idea
I don't think
api.telegram.org
is a private networking domainSolution
but it's very possible that telegram is blocking you, unfortunately there's not much you can do about that without railway supporting static ip's (yet) besides deploy your code into another project and hoped you don't get the same banned shared ip
Yeah, there's this as well.
It seems to use the same lib.
I'm closing the issue. Thanks!
im talking about deploying your code into another project
Yes, i get it but I'm deploying to my VM for now instead of rouletting IPs.
ah gotcha
π thanks for the support
happy to help!