tg-cli

Featured

CLI skill for Telegram to sync chats, search messages, filter keywords, and monitor groups from the terminal

Data & Documents 245 stars 29 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 90/100

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

Skill Content

# tg-cli Skill CLI tool for Telegram — sync chats, search messages, filter keywords, send messages, and monitor groups. ## Prerequisites ```bash # Install (requires Python 3.10+) uv tool install kabi-tg-cli # Or: pipx install kabi-tg-cli # Upgrade to latest (recommended to avoid API errors) uv tool upgrade kabi-tg-cli # Or: pipx upgrade kabi-tg-cli ``` ## Authentication Uses your Telegram account (MTProto). Built-in Telegram Desktop API credentials are used by default — no application needed. ```bash tg chats # First run: enter phone + verification code tg whoami # Check current user # Optional: use your own app credentials export TG_API_ID=123456 export TG_API_HASH=your_telegram_app_hash ``` ## Command Reference ### Telegram Operations ```bash tg chats # List joined chats tg chats --type group # Filter by type tg status # Check auth/session status tg status --yaml # Structured auth status tg whoami # Show current user info tg whoami --yaml # Preferred structured output for agents tg history CHAT -n 1000 # Fetch historical messages tg sync CHAT # Incremental sync (only new) tg sync-all # Low-level sync for all current dialogs tg refresh # Recommended daily refresh entrypoint tg listen # Real-time listener tg listen --persist ...

Details

Author
public-clis
Repository
public-clis/tg-cli
Created
2 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

tgcli

Telegram CLI for reading/searching messages, syncing archives, and sending or downloading files. Use when the user asks about Telegram chats, messages, contacts, groups, or files.

37 Updated 1 months ago
kfastov
Data & Documents Solid

tgcli

Telegram CLI for syncing, searching, sending messages, and managing chats. Pure Rust implementation with no TDLib dependency. Supports multi-account setups, local FTS5 search, media download, scheduled messages, and real-time daemon mode. Use for interacting with Telegram from the command line or in scripts.

16 Updated 2 months ago
dgrr
Data & Documents Featured

xhs-cli

Headless-browser-based CLI skill for Xiaohongshu (小红书, RedNote, XHS) to search notes, read posts, browse profiles, like, favorite, comment, and publish from the terminal

546 Updated 2 months ago
jackwener
AI & Automation Solid

tlive

IM bridge for AI coding tools — chat with Claude Code / Codex from Telegram, Discord, or Feishu. Approve permissions, get streaming responses, manage sessions from your phone. Use for: starting IM bridge, configuring IM platforms, checking status, diagnosing issues. Trigger phrases: "tlive", "IM bridge", "消息桥接", "手机交互", "启动桥接", "连接飞书", "连接Telegram", "诊断", "查看日志", "配置". Do NOT use for: building bots, webhook integrations, or general coding tasks.

199 Updated 1 months ago
y49
AI & Automation Solid

access

Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Telegram channel.

27,735 Updated today
anthropics