Best use case
telegram-contacts is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Export/import/lookup Telegram contacts
Teams using telegram-contacts should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/telegram-contacts/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How telegram-contacts Compares
| Feature / Agent | telegram-contacts | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Export/import/lookup Telegram contacts
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Telegram Contacts > Export, import, and lookup Telegram contacts ## When to use - "export contacts from telegram" - "find a contact in telegram" - "import contacts to telegram" - "who is this @username" - "find by phone number" ## Tool `$TG_TOOLS_PATH/tools/tg_contacts.py` ## How to run ### Export contacts ```bash # CSV to stdout python3 $TG_TOOLS_PATH/tools/tg_contacts.py export # CSV to file python3 $TG_TOOLS_PATH/tools/tg_contacts.py export --output contacts.csv # JSON with last messages python3 $TG_TOOLS_PATH/tools/tg_contacts.py export --output contacts.json --messages 50 ``` CSV columns: user_id, username, first_name, last_name, phone. JSON additionally: messages, last_message_date, messages_count. ### Lookup contact ```bash # By username python3 $TG_TOOLS_PATH/tools/tg_contacts.py lookup @username # By phone number python3 $TG_TOOLS_PATH/tools/tg_contacts.py lookup +380671234567 ``` Shows: name, username, phone, ID + last 5 messages. If the contact is not in the list -- temporarily adds and automatically removes after checking. ### Import contacts ```bash python3 $TG_TOOLS_PATH/tools/tg_contacts.py import --input contacts.csv ``` CSV format: `first_name,last_name,phone` ## Limitations - JSON export with messages can be slow (0.3 sec per contact) - Progress is saved every 100 contacts - Not all phone numbers are registered on Telegram ## Related skills - `telegram-send` -- sending messages - `telegram-check` -- checking replies - `update-lead` -- update CRM after lookup
Related Skills
telegram-session
Create/update Telethon session
telegram-send
Telegram DM sending from CSV, rate limiting, idempotency
telegram-scraper-run
Automatic Telegram scraping
telegram-scrape
Search Telegram channels, read posts, ad contacts
telegram-push
通过独立 Telegram Bot 向群聊或私聊推送消息,适合不依赖 OpenClaw channel 配置的通知场景。
telegram-inbound-run
Automatic inbound Telegram message processing
telegram-groups
Posting, members, Telegram group management
telegram-check
Check inbound Telegram messages
telegram-automation
Automate Telegram tasks via Rube MCP (Composio): send messages, manage chats, share photos/documents, and handle bot commands. Always search tools first for current schemas.
agent-contacts
AI agent contacts — add, list, remove MCP contacts. Use when someone gives an agent URL, or when you need to view/remove contacts.
wemp-operator
> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装
zsxq-smart-publish
Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.