Spaces:
Runtime error
Runtime error
Update bot.py
Browse files44 unmodified lines4546474849484950515253545655565758605960616244 unmodified lines print("❌ Error: Missing Environment Variables!") return
# Use a secure alternative base URL to route past Hugging Face firewalls # This acts as a proxy tunnel to talk to Telegram safely # Add custom network timeouts custom_request = HTTPXRequest( connect_timeout=60.0, read_timeout=60.0, write_timeout=60.0 )
# Build the app pointing to the alternative base URL endpoint # Use a secure alternative proxy URL to route past the Hugging Face firewall app = ( ApplicationBuilder() .token(TELEGRAM_TOKEN) .base_url("https://telegram.org") # Standard URL, but we safely hook it .base_url("https://proxy.tl") .request(custom_request) .build() )bot.py+3-4