Environment Variables
Every variable explained in detail โ what it does, where to get it, and what format it expects.
Quick Reference
| Variable | Type | Status | Category |
|---|---|---|---|
API_ID | Required | Telegram API | |
API_HASH | Required | Telegram API | |
ELITE_SESSION | Required | Authentication | |
LOG_CHAT_ID | Optional | Logging | |
SUDO_USERS | Optional | Access Control |
๐ก๏ธ Security Notice โ Read This First
Detailed Breakdown
API_IDYour Telegram application's API ID. Every Telegram app needs this to connect to the Telegram API. You get this when you create an application at my.telegram.org.
12345678How to Get It
Go to my.telegram.org โ Log in โ API Development Tools โ Create App โ Copy the app_id value.
๐ Get it at my.telegram.orgAPI_HASHYour Telegram application's API Hash. This is the secret key paired with your API_ID. Together they identify your app to Telegram's servers.
abcdef1234567890abcdef1234567890How to Get It
Go to my.telegram.org โ API Development Tools โ Copy the api_hash value (the long string below api_id).
๐ Get it at my.telegram.orgELITE_SESSIONYour CipherElite-specific session string. Unlike regular Telegram session strings, this is cryptographically locked to CipherElite's authentication layer. Even if stolen, it cannot be used on any other tool. This is what keeps your account safe.
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขHow to Get It
Start @elite_session_maker_bot on Telegram โ Follow the prompts โ Authenticate with your phone number and OTP โ Copy the long session string it gives you.
๐ Generate at @elite_session_maker_botLOG_CHAT_IDThe ID of a private Telegram GROUP where CipherElite will send system logs, startup messages, errors, AI decisions, and important events. It must be a group (not a channel) and CipherElite must be a member of that group.
-100123456789How to Get It
Create a private Telegram group โ Add CipherElite (your userbot) to it โ Add @ultron2_robot to the group โ Send /id in the group โ the bot will reply with the group ID (it starts with -100). Copy that number.
SUDO_USERSYour Telegram user ID. Users listed here have admin access to the bot โ they can run all commands, change settings, and update the bot. You should always add your own user ID here.
123456789How to Get It
Start a chat with @ultron2_robot on Telegram โ Send /id โ it will instantly reply with your numeric Telegram user ID. Copy that number.
๐ Get your ID via @ultron2_robotSample .env File
This is what your .env file should look like after you fill it in. Replace the example values with your real ones.
# ===== CipherElite Configuration ===== # --- Telegram API (get from my.telegram.org) --- API_ID=12345678 API_HASH=abcdef1234567890abcdef1234567890 # --- Session (get from @elite_session_maker_bot) --- ELITE_SESSION=xxxxxxxxxxxxxxxxxxxx... # --- Optional Configuration --- LOG_CHAT_ID=-100123456789 SUDO_USERS=987654321