Environment Variables
Every variable explained in detail — what it does, where to get it, and what format it expects.
Quick Reference
| Variable | Status |
|---|---|
API_ID | Required |
API_HASH | Required |
ELITE_SESSION | Required |
LOG_CHAT_ID | Optional |
SUDO_USERS | Optional |
🛡️ Security Notice — Read This First
Detailed Breakdown
API_IDRequiredTelegram APIYour 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.
Example Value
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_HASHRequiredTelegram APIYour Telegram application's API Hash. This is the secret key paired with your API_ID. Together they identify your app to Telegram's servers.
Example Value
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_SESSIONRequiredAuthenticationYour 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.
Example Value
••••••••••••••••••••••••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_IDOptionalLoggingThe 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.
Example Value
-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_USERSOptionalAccess ControlYour 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.
Example Value
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.