Telegram bot toolkit — named connections, personal accounts, CLI & Python API
# Base install
pip install teli-lib
# With personal account support (Telethon)
pip install "teli-lib[user]"
Use a bot token from @BotFather.
teli add mybot --token 123456:ABC...
teli listen mybot
# Send /start to the bot in Telegram → your chat_id appears here
teli send mybot 987654321 "Hello from teli!"
Send messages from your own Telegram account — no bot involved. Requires API credentials from my.telegram.org.
teli user add me --api-id 12345678 --api-hash abc123...
teli user connect
# Telegram sends a code to your phone — enter it here
teli user send Luganense "Hola!"
teli user send @username "Hola!"
teli user send 987654321 "Hola!"
teli status
Bot connections:
mybot token=123456:ABC... chats=all
User accounts:
me api_id=12345678 (default)
Install a skill so Claude knows how to use teli without you having to explain it every time:
teli install-skill
# Installed to ~/.claude/skills/teli/SKILL.md
# Restart Claude Code — then invoke with /teli
pip install --upgrade teli-lib to keep it current.
teli status Show all connections + accounts
teli add <name> --token TOKEN Register a bot
teli list List bot connections
teli remove <name> Remove a bot
teli send <name> <chat_id> <message> Send via bot
teli listen <name> [--webhook URL] Long-poll incoming messages
teli whoami <name> Get bot identity
teli user add <name> --api-id ID --api-hash H Register personal account
teli user accounts List personal accounts
teli user connect [name] Authenticate (once)
teli user send <recipient> <message> Send from your account
teli user listen --bot <bot_username> Listen for bot messages
teli install-skill Install Claude Code skill