Telegram Panel CLI (Command Line Interface) is the second method of using Telegram Panel. It allows you to manage Telegram accounts and perform operations directly from your server or local system, without using the Telegram bot interface.
Note: This is Method 2 of using Telegram Panel. Method 1 is using the Telegram Bot interface. Both methods provide the same functionality.
Make sure you have installed all dependencies:
pip install -r requirements.txtRun CLI commands using:
python cli_main.py [COMMAND] [OPTIONS]Or make it executable:
chmod +x cli_main.py
./cli_main.py [COMMAND] [OPTIONS]python cli_main.py list-accountspython cli_main.py add-account +1234567890You will be prompted to:
- Enter verification code received via Telegram
- Enter 2FA password if enabled
python cli_main.py remove-account SESSION_NAMEpython cli_main.py individual reaction SESSION_NAME LINK REACTIONReactions: 👍, ❤️, 😂, 😮, 😢, 😡
Example:
python cli_main.py individual reaction +1234567890 "https://t.me/c/123456/789" 👍python cli_main.py individual vote SESSION_NAME LINK OPTION_NUMBERExample:
python cli_main.py individual vote +1234567890 "https://t.me/c/123456/789" 1python cli_main.py individual join SESSION_NAME LINKExample:
python cli_main.py individual join +1234567890 "https://t.me/username"python cli_main.py individual leave SESSION_NAME LINKpython cli_main.py individual block SESSION_NAME USERNAME_OR_IDpython cli_main.py individual send-pv SESSION_NAME USERNAME_OR_ID "MESSAGE_TEXT"python cli_main.py individual comment SESSION_NAME LINK "COMMENT_TEXT"python cli_main.py bulk reaction NUM_ACCOUNTS LINK REACTIONExample:
python cli_main.py bulk reaction 5 "https://t.me/c/123456/789" 👍python cli_main.py bulk vote NUM_ACCOUNTS LINK OPTION_NUMBERpython cli_main.py bulk join NUM_ACCOUNTS LINKpython cli_main.py bulk leave NUM_ACCOUNTS LINKpython cli_main.py bulk block NUM_ACCOUNTS USERNAME_OR_IDpython cli_main.py bulk send-pv NUM_ACCOUNTS USERNAME_OR_ID "MESSAGE_TEXT"python cli_main.py bulk comment NUM_ACCOUNTS LINK "COMMENT_TEXT"# List available accounts
python cli_main.py list-accounts
# Add a new account
python cli_main.py add-account +1234567890
# Apply reaction with one account
python cli_main.py individual reaction +1234567890 "https://t.me/c/123456/789" 👍
# Apply reaction with 5 accounts
python cli_main.py bulk reaction 5 "https://t.me/c/123456/789" 👍
# Join a channel with 3 accounts
python cli_main.py bulk join 3 "https://t.me/username"- All operations require valid API_ID and API_HASH in
.envfile - Session files are stored in the project directory
- Accounts are automatically saved after adding
- CLI operations are independent of the Telegram bot