tgclilisted
Install: claude install-skill dgrr/tgcli
# tgcli – Telegram CLI
Pure Rust Telegram client. No TDLib. Fast. Cross-platform.
## Quick Start
```bash
tgcli auth # Authenticate (first time)
tgcli sync # Incremental sync
tgcli chats list --output markdown # List chats (markdown recommended)
tgcli messages list --chat 987654321 --output markdown # List messages from chat
tgcli send --to 123456789 --message "Hello there!" # Send message
```
## Core Commands
### Sync
Fetch updates from Telegram servers. Always incremental (skips duplicates).
```bash
tgcli sync # Default (shows summary)
tgcli sync -q # Quiet (no output)
tgcli sync --full # Full sync (all messages)
tgcli sync --download-media # Save media files
tgcli sync --stream # JSONL streaming (for pipelines)
```
### Chats
Manage chats: list, search, archive, pin, mute, create groups, join, leave.
```bash
tgcli chats list --output markdown # List (markdown recommended)
tgcli chats list --limit 50 # Limit results
tgcli chats search "DevTeam" # Search by name
tgcli chats archive 987654321 # Archive specific chat
tgcli chats pin 987654321 # Pin chat
tgcli chats mute 987654321 # Mute notifications
tgcli chats create --group "Project Alpha" --user 111222333 # Create group
tgcli chats join https://t.me/joinchat/... # Join via invite link
tgcli chats leave 9876543