agent-telegram

Solid

Interact with Telegram through TDLib - authenticate, inspect chats, and send messages

AI & Automation 183 stars 39 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
75
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Agent Telegram A TDLib-backed Telegram CLI for AI agents. The CLI auto-provisions API credentials via my.telegram.org — users never need to know or provide api_id/api_hash. Use one of these entrypoints: - Global install: `agent-telegram ...` - One-off execution: `bunx --package agent-messenger agent-telegram ...` ## Quick Start ```bash # Login (CLI auto-provisions API credentials) agent-telegram auth login --phone +821012345678 # List chats agent-telegram chat list # Send a message agent-telegram message send <chat-id-or-@username> "Hello from agent-telegram" ``` ## Authentication Flow Telegram auth is stateful. TDLib persists authorization state locally, so each call picks up where the last one left off — no custom state management needed. The CLI automatically provisions API credentials via my.telegram.org during login — no manual credential setup required. ### Agent Behavior (MANDATORY) When a command fails because no account is configured, the agent MUST drive the auth flow itself. Never tell the user to run commands — the agent runs everything. Never mention api_id, api_hash, or my.telegram.org to the user — these are internal details handled by the CLI. **Step 1: Check for existing accounts** ```bash agent-telegram auth list ``` If accounts exist → `agent-telegram auth use <account-id>` and retry the original command. **Step 2: If no accounts, ask for phone number** Ask the user for their Telegram phone number (international format, e.g. `+821012345678`...

Details

Author
majiayu000
Repository
majiayu000/claude-skill-registry
Created
5 months ago
Last Updated
1 months ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category