telegram-inbound-run

Automatic inbound Telegram message processing

33 stars

Best use case

telegram-inbound-run is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Automatic inbound Telegram message processing

Teams using telegram-inbound-run 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-inbound-run/SKILL.md --create-dirs "https://raw.githubusercontent.com/aAAaqwq/AGI-Super-Team/main/skills/telegram-inbound-run/SKILL.md"

Manual Installation

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

How telegram-inbound-run Compares

Feature / Agenttelegram-inbound-runStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Automatic inbound Telegram message processing

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 Inbound Agent - Manual Run

> Skill for manually triggering Telegram Inbound Reply Monitor Agent

## When to use

- "check Telegram for replies"
- "run Telegram inbound agent"
- "see if anyone replied on Telegram"
- "check Telegram replies"

## What it does

Agent:
1. Extracts messages from Telegram (last 24 hours)
2. Filters contacts that we messaged (outbound)
3. Classifies replies via Claude Haiku (POSITIVE/NEGATIVE/QUESTION/etc)
4. Logs activity in CRM
5. Updates lead statuses
6. Sends notification to Saved Messages
7. Creates git commit

## How to run

### Dry run (no CRM changes)

```bash
cd $AGENTS_PATH/telegram-inbound
python3 telegram_inbound_agent.py --dry-run --since 24h
```

### Full run

```bash
cd $AGENTS_PATH/telegram-inbound
python3 telegram_inbound_agent.py --since 24h
```

### Notification test

```bash
cd $AGENTS_PATH/telegram-inbound
python3 telegram_inbound_agent.py --notify-test
```

### Without AI (rule-based classification)

```bash
cd $AGENTS_PATH/telegram-inbound
python3 telegram_inbound_agent.py --no-ai --since 24h
```

### Larger time window

```bash
# Last 48 hours
python3 telegram_inbound_agent.py --since 48h

# Last 7 days
python3 telegram_inbound_agent.py --since 7d

# Last 14 days
python3 telegram_inbound_agent.py --since 14d
```

## Output

### Stdout (summary)
```
📬 Telegram Inbound: 2026-02-12 09:00

5 new replies (3 positive, 1 questions)

✅ POSITIVE (3):
  • John Doe: Interested in labeling service
  ...
```

### Files
- **Summary**: `$AGENTS_PATH/logs/telegram-inbound-{date}.md`
- **Run log**: `$AGENTS_PATH/logs/telegram_agent_log.json`
- **Errors**: `$AGENTS_PATH/logs/errors/telegram-inbound-{date}.log`

### CRM updates
- **Activities**: added to `sales/crm/activities.csv`
- **Leads**: updated statuses in `sales/crm/relationships/leads.csv`
- **Git commit**: auto-commit with change description

## Flags

| Flag | Description |
|------|-------------|
| `--dry-run` | Classification only, no CRM updates or notifications |
| `--no-ai` | Rule-based classification (without Claude) |
| `--since <duration>` | Time window: 24h, 48h, 7d, 14d |
| `--notify-test` | Test Telegram notification |

## Scheduled Runs

Agent runs automatically 3 times a day:
- **09:00** - morning check
- **13:00** - midday check
- **17:00** - evening check

Via launchd: `com.yourcompany.telegram-inbound`

## Troubleshooting

### "No actionable contacts found"

```bash
# Check activities.csv for outbound Telegram
grep telegram $CRM_PATH/activities.csv | grep outbound

# Check people.csv for telegram usernames
grep telegram_username $CRM_PATH/contacts/people.csv
```

### "Telegram authorization failed"

```bash
# Re-auth
cd $TG_TOOLS_PATH
python3 tools/tg_auth.py
```

### View recent summary

```bash
cat $AGENTS_PATH/logs/telegram-inbound-$(date +%Y-%m-%d).md
```

## Related skills

- `telegram-send` - sending outbound messages
- `change-review` - review CRM changes before commit
- `update-lead` - manual CRM update
- `log-activity` - manual activity logging

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-groups

33
from aAAaqwq/AGI-Super-Team

Posting, members, Telegram group management

telegram-contacts

33
from aAAaqwq/AGI-Super-Team

Export/import/lookup Telegram contacts

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.

linkedin-inbound-run

33
from aAAaqwq/AGI-Super-Team

Automatic inbound LinkedIn message processing

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