Deletes Telegram messages from a chat for everyone or only for yourself. Supports single and bulk deletion by message ID.
Ships in tlg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Delete one or multiple messages from a chat. By default deletes for everyone.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
~/.local/share/gramjs/<profile>.session
/tlg:setup first/usr/bin/env bash << 'EOF'
ROOT="$(cc-plugin-root tlg)"
SCRIPT="$ROOT/scripts/tg-cli.ts"
# Delete for everyone (default)
bun "$SCRIPT" delete <chat> <message_id>
# Delete multiple messages
bun "$SCRIPT" delete <chat> 12345,12346,12347
# Delete only for yourself
bun "$SCRIPT" delete <chat> <message_id> --self-only
# Find message IDs first
bun "$SCRIPT" read <chat> -n 10
EOF
| Parameter | Type | Description |
|---|---|---|
| chat | string/int | Chat containing messages |
| message_ids | string | Message ID(s), comma-separated |
--self-only | flag | Delete only for yourself (default: for everyone) |
read <chat> -n N to find message IDsdelete <chat> <ids>After this skill completes, check before closing:
Only update if the issue is real and reproducible — not speculative.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/tlg:delete-messagesfrom tlg
npx claudepluginhub terrylica/cc-skills --plugin tlg16 skills in this plugin
/cleanup-deleteduser wants to clean up Telegram by purging deleted or ghost accounts from their dialog list and contacts, or removing spam ghosts that clutter./create-groupUse when user wants to create a new Telegram group, supergroup, or channel, optionally inviting members on creation./download-mediaUse when user wants to download, save, or extract media files such as photos, videos, and documents from Telegram messages./draft-messageUse when an AI agent has drafted a long or sensitive Telegram message and the user wants to review it before sending: posts it to Saved Messages for editing and copy-paste.Other plugins' skills for the same job