telegram-contacts

Export/import/lookup Telegram contacts

33 stars

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

$curl -o ~/.claude/skills/telegram-contacts/SKILL.md --create-dirs "https://raw.githubusercontent.com/aAAaqwq/AGI-Super-Team/main/skills/telegram-contacts/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/telegram-contacts/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How telegram-contacts Compares

Feature / Agenttelegram-contactsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

33
from aAAaqwq/AGI-Super-Team

Create/update Telethon session

telegram-send

33
from aAAaqwq/AGI-Super-Team

Telegram DM sending from CSV, rate limiting, idempotency

telegram-scraper-run

33
from aAAaqwq/AGI-Super-Team

Automatic Telegram scraping

telegram-scrape

33
from aAAaqwq/AGI-Super-Team

Search Telegram channels, read posts, ad contacts

telegram-push

33
from aAAaqwq/AGI-Super-Team

通过独立 Telegram Bot 向群聊或私聊推送消息,适合不依赖 OpenClaw channel 配置的通知场景。

telegram-inbound-run

33
from aAAaqwq/AGI-Super-Team

Automatic inbound Telegram message processing

telegram-groups

33
from aAAaqwq/AGI-Super-Team

Posting, members, Telegram group management

telegram-check

33
from aAAaqwq/AGI-Super-Team

Check inbound Telegram messages

telegram-automation

33
from aAAaqwq/AGI-Super-Team

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

33
from aAAaqwq/AGI-Super-Team

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

33
from aAAaqwq/AGI-Super-Team

> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装

Content & Documentation

zsxq-smart-publish

33
from aAAaqwq/AGI-Super-Team

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 知识星球.