| name | delete-messages |
| description | Use when user wants to delete, remove, or unsend Telegram messages from a chat, either for everyone or just for themselves. |
| allowed-tools | Bash, Read, Grep, Glob |
Delete Telegram Messages
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.
Preflight
- Session must exist:
~/.local/share/gramjs/<profile>.session
- If missing, run
/tlg:setup first
Usage
/usr/bin/env bash << 'EOF'
ROOT="$(cc-plugin-root tlg)"
SCRIPT="$ROOT/scripts/tg-cli.ts"
bun "$SCRIPT" delete <chat> <message_id>
bun "$SCRIPT" delete <chat> 12345,12346,12347
bun "$SCRIPT" delete <chat> <message_id> --self-only
bun <chat> -n 10
EOF