What problem does it solve?
Provides a reliable, agent-friendly bridge to interact with Telegram from Claude Code, removing the manual friction of switching to a phone or GUI for messaging tasks and media handling. It lets agents read history, search conversations, send and edit messages, manage contacts and groups, and download or upload media programmatically.
Core Features & Use Cases
- Send and receive messages: programmatically send, reply, edit, forward, react to, pin, and delete messages across users, groups, and channels.
- Search and read history: global and per-chat search with media filters, forum topic support, and time-range queries to gather context for agent decisions.
- Media and contacts: download and upload files, send albums and captions, manage contacts, and export/import portable sessions for multi-environment workflows.
- Agent automation & reliability: output modes (JSON/JSONL/TOON/human), field selection for token efficiency, error codes and rate-limit guidance, and reference patterns for building safe agent workflows.
Quick Start
Send a short message to a target username and attach a file after installing the tg CLI and authenticating with tg auth login.