Home/Docs/Configuration
⚙️ Configuration

Environment Variables

Every variable explained in detail — what it does, where to get it, and what format it expects.

Quick Reference

VariableStatus
API_IDRequired
API_HASHRequired
ELITE_SESSIONRequired
LOG_CHAT_IDOptional
SUDO_USERSOptional

🛡️ Security Notice — Read This First

⚠️Never share your ELITE_SESSION, API_ID, or API_HASH with anyone.
⚠️Never commit your .env file to GitHub — it is already in .gitignore but verify before pushing.
⚠️The ELITE_SESSION is useless to anyone other than CipherElite — but keep it private anyway.
⚠️If you suspect your session is compromised, terminate it at my.telegram.org → Active Sessions.

Detailed Breakdown

API_IDRequiredTelegram API
Integer

Your 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

12345678

How 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.org
API_HASHRequiredTelegram API
String

Your 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

abcdef1234567890abcdef1234567890

How 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.org
ELITE_SESSIONRequiredAuthentication
String (Encrypted)

Your 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_bot
LOG_CHAT_IDOptionalLogging
Integer (Negative)

The 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

-100123456789

How 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 Control
Integer (User ID)

Your 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

123456789

How 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_robot

Sample .env File

This is what your .env file should look like after you fill it in. Replace the example values with your real ones.

.env
# ===== 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