Skip to content
Back to skills

979 Skill 4c6ae4b8

ASecurity

Process Telegram messages via GramJS MTProto client. Read messages, generate AI drafts, save drafts, and create intro groups. Use when handling Telegram conversations or facilitating introductions.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsbashdatabasedocumentation

Works with

  • cli

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 979-skill_4c6ae4b8 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 979 Skill 4c6ae4b8?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 979 Skill 4c6ae4b8
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-979-skill-4c6ae4b8/badge)](https://www.skillsdirectory.com/skills/tools-only-979-skill-4c6ae4b8)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: telegram
description: Process Telegram messages via GramJS MTProto client. Read messages, generate AI drafts, save drafts, and create intro groups. Use when handling Telegram conversations or facilitating introductions.
---

# Telegram Skill

Process Telegram messages via GramJS MTProto client. Supports unread messages, specific users, message requests, and group creation for introductions.

**CRITICAL: NEVER SEND MESSAGES. Only save drafts.**

## Capabilities

| Capability | Description |
|------------|-------------|
| **Unread Mode** | Process N unread conversations |
| **User Mode** | Find specific person by username/name (any read state) |
| **Requests Mode** | Process message requests folder (non-contacts) |
| **Entity Context** | Load context from database for known contacts |
| **Draft Replies** | AI generates contextual reply drafts |
| **Save Drafts** | Save drafts to Telegram (no sending) |
| **Create Groups** | Create new groups and add members for introductions |
| **Dialog Cache** | Fast lookups via cached dialog IDs (~1s vs ~90s) |
| **Mark Unread** | Re-mark conversations as unread after processing |
| **History** | Save per-person history to vault `context/telegram/` |

## Workflows

- **`workflows/process-messages.md`** - Full workflow for reading/replying
- **`workflows/create-intro-group.md`** - Workflow for facilitating introductions

## Tools

| Script | Purpose |
|--------|---------|
| `scripts/telegram-gramjs.ts` | GramJS MTProto client - fetch messages, populate cache |
| `scripts/telegram-save-drafts.ts` | Save AI drafts to Telegram from work file |
| `scripts/save-telegram-draft.ts` | Quick helper to save one draft by username |
| `scripts/telegram-create-group.ts` | Create groups and add members for intros |

## Quick Reference

```bash
# Unread mode (default)
/cyber-telegram                    # 1 unread dialog
/cyber-telegram --count 3          # 3 unread dialogs

# User mode
/cyber-telegram --user "@username" # By username
/cyber-telegram --user "Name"      # By name

# Requests mode
/cyber-telegram --requests         # Message requests folder

# Modifiers
/cyber-telegram --dry-run          # Read only
/cyber-telegram --no-mark-unread   # Don't preserve unread state

# Create intro group
bun scripts/telegram-create-group.ts --dry-run --title "A <> B" --users "@user1,@user2"
bun scripts/telegram-create-group.ts --title "A <> B" --users "@user1,@user2" --draft "Intro message"
```

See workflow files for full documentation.

## Dialog Cache

Dialog cache (`~/.cybos/telegram/dialog-cache.json`) stores all dialog IDs with access hashes for fast lookups:
- Populated automatically during searches
- Used by `telegram-save-drafts.ts` to avoid fetching all dialogs
- ~1 second draft save vs ~90 seconds without cache

## Safety

Drafts only - never sends messages automatically. User reviews and sends manually in Telegram.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.