What problem does it solve?
Teams and operators who need to script Telegram workflows cannot rely on heavy TDLib hybrids, so tgcli provides an authenticated CLI that handles sync, search, messaging, and metadata management without C/C++ dependencies.
Core Features & Use Cases
- Pure Rust MTProto Engine: Authenticates via phone/code/2FA, stores sessions in a local sqlite session, and contacts Telegram through grammers without external binaries.
- Incremental Sync + Search: Keeps libSQL/FTS5 stores updated, exposes multi-account stores, and lets you list/search chats or messages with optional markdown, JSON, or text formatting.
- Daemon + Admin Tools: Runs real-time daemon mode, exports data, manages folders/members/polls, and supplies shell completions for automation-friendly outputs.
Quick Start
Authenticate with tgcli auth, sync your chats via tgcli sync, and send a message with tgcli send to confirm the setup works.