From telegram-cli
Sets up Telegram CLI by authenticating personal accounts via MTProto sessions using Telethon and configuring 1Password credentials for API keys. For first-time Telegram automation.
npx claudepluginhub terrylica/cc-skillsThis skill is limited to using the following tools:
One-time setup to authenticate personal Telegram accounts via MTProto.
Sets up Telegram CLI by authenticating personal accounts via MTProto using 1Password credentials. Handles first-time login, re-authentication, and session management for profiles like eon and missterryli.
Sends messages from personal Telegram accounts via MTProto using Telethon. Supports usernames, chat IDs, or phone numbers with predefined profiles. Use for direct Telegram messaging in workflows.
Interact with Telegram via TDLib CLI: authenticate accounts, list chats, send messages. Auto-provisions API credentials and supports agent-driven auth flows.
Share bugs, ideas, or general feedback.
One-time setup to authenticate personal Telegram accounts via MTProto.
op --versionClaude Automation| Profile | 1Password Item | Item UUID | Phone |
|---|---|---|---|
eon | Telegram API - EonLabsOperations | iqwxow2iidycaethycub7agfmm | +1 (CA) |
missterryli | Telegram API - missterryli (CN) | dk456cs3v2fjilppernryoro5a | +86 (CN) |
/usr/bin/env bash << 'VERIFY_EOF'
op item get "iqwxow2iidycaethycub7agfmm" --vault "Claude Automation" --fields "App ID" 2>&1
op item get "dk456cs3v2fjilppernryoro5a" --vault "Claude Automation" --fields "App ID" 2>&1
VERIFY_EOF
Each profile requires a one-time interactive auth. The user must run directly:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/telegram-cli}"
# Auth eon profile
uv run --python 3.13 "$PLUGIN_DIR/scripts/send.py" -p eon whoami
# Auth missterryli profile
uv run --python 3.13 "$PLUGIN_DIR/scripts/send.py" -p missterryli whoami
Prompts for:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/telegram-cli}"
uv run --python 3.13 "$PLUGIN_DIR/scripts/send.py" -p eon whoami
uv run --python 3.13 "$PLUGIN_DIR/scripts/send.py" -p missterryli whoami
| File | Purpose |
|---|---|
~/.local/share/telethon/eon.session | EonLabsOperations MTProto session |
~/.local/share/telethon/missterryli.session | missterryli MTProto session |
To re-authenticate (e.g., after revoking session in Telegram > Settings > Devices):
rm ~/.local/share/telethon/<profile>.session
# Then re-run whoami for that profile
Edit the PROFILES dict in scripts/send.py:
PROFILES: dict[str, str] = {
"eon": "iqwxow2iidycaethycub7agfmm",
"missterryli": "dk456cs3v2fjilppernryoro5a",
"newprofile": "<1password-item-uuid>",
}
Then store API credentials in 1Password vault Claude Automation with fields App ID and App API Hash.