General Inquiry

Question

← Community
AbdullahRandhawa00 2026-08-27 2 replies 17 views

I created a Python server on the free plan. I need to set environment variables such as API_ID, API_HASH, BOT_TOKEN and API keys for my Python Telegram bot. Where can I add environment variables/secrets for my server?

2 replies

ZodiFox · 2026-08-27

Environment variables such as API_ID, API_HASH, BOT_TOKEN, and API keys should be added to a .env file.


For example:


API_ID=000000

API_HASH=your_api_hash

BOT_TOKEN=your_bot_token

API_KEY=your_api_key

AbdullahRandhawa00 · 2026-08-27

thankx

To reply to this discussion, create a free Waifly account or sign in. Reading stays open to everyone.