You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A powerful multi-account Telegram self-bot with a beautiful Hono web dashboard, granular role-based access, channel mirroring, live bio clock, in-panel chat viewer, and a rich set of Persian/English commands.
Ported from the original MadelineProto (PHP) script — original authors: SjD, Mr Swift, SylvanasWindruner.
✨ Features
🧑🤝🧑 Multi-account
Unlimited Telegram accounts in one process
🔐 2-role auth
admin (full access) · signer (can only add & log in accounts they created)
💬 Web chat viewer
Browse dialogs, read history, send messages — directly from the panel
📡 Channel mirror
Forward messages from a source chat to any number of destinations, filtered per media type (text / image / video / voice / audio / document / sticker / gif)
🕒 Bio clock
Live Tehran time + date written to your Telegram bio every minute
HMAC key for panel cookies — set this in production
DASH_USER / DASH_PASS
❌
admin / admin
Admin login
DASH_USER2 / DASH_PASS2
❌
signer / signer
Signer login
PROXY
❌
false
Enable SOCKS5 proxy
PROXY_SERVER / PROXY_PORT
❌
127.0.0.1 / 12334
Proxy address
👥 Dashboard Roles
Role
Can do
admin
Everything: view all accounts, start / stop / delete, edit state, use chat viewer, run commands via panel
signer
Add new accounts and complete the login (code + 2FA) — only for accounts they created. Cannot start/stop or view others' accounts
Session cookie is HMAC-signed (sb_session) and lives 7 days.
📜 Bot Commands
All commands are sent to your own account (Saved Messages or any chat) and are prefixed with the current prefix ($ by default). The account owner is the only one whose messages are treated as commands.
Multi-account table — live status, prefix, admin Telegram ID
Add account — enter phone → Telegram sends SMS code
Code / 2FA — enter inline; on success the bot auto-starts
Start / Stop / Delete buttons per account
State viewer — raw JSON of the Mongo state doc
Chats viewer
Filter by user / group / channel
Search by title, id, or @username
Click a chat → message history (last 50, oldest → newest)
Inline send with Ctrl+Enter
Auto-refreshes every 8 s while a chat is open
Command console — send any $command as if from your Telegram account
🐛 Troubleshooting
Symptom
Fix
AUTH_KEY_UNREGISTERED
Delete the account, re-add, and log in again
PHONE_CODE_INVALID
Check the code — it can also be a Telegram-in-app code, not SMS
SESSION_PASSWORD_NEEDED
2FA is enabled — enter the password in the 2FA prompt
CHAT_FORWARDS_RESTRICTED on a channel
The mirror source channel has forwarding disabled
FLOOD_WAIT_X
Telegram rate-limits — wait X seconds; set smaller limit in the panel
Panel returns 401
Cookie expired — log out, log back in
Signer can't see an account
They only see accounts they created; admin sees all
$answerlist always "empty"
Fixed in this version — use the updated BotRuntime
🔐 Security Notes
The panel must run behind HTTPS in production (or a reverse proxy like Cloudflare / nginx).
Set a strong SESSION_SECRET — otherwise cookies reset every restart and are forgeable.
Telegram sessions are stored in Mongo in plaintext. Restrict DB access.
Never share your API_HASH, DASH_PASS, or SESSION_SECRET.
The default admin/admin credentials are insecure — change them.
⚠️ Disclaimer
This project is for educational and personal use only.
Using self-bots (user accounts automated via MTProto) may violate Telegram's Terms of Service and can result in account restrictions or bans.
The authors and contributors are not responsible for any bans, data loss, or legal consequences arising from the use of this software.
Do not use it to spam, harass, or break the law. Obey Telegram's ToS and your local laws.