Pins or unpins messages in Telegram chats, groups, and channels via CLI. Useful for managing pinned messages programmatically.
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.
Pin or unpin messages in chats, groups, and channels.
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"
# Pin a message (with notification)
bun "$SCRIPT" pin <chat> <message_id>
# Pin silently (no notification)
bun "$SCRIPT" pin <chat> <message_id> --silent
# Unpin a specific message
bun "$SCRIPT" pin <chat> <message_id> --unpin
# Unpin all messages
bun "$SCRIPT" pin <chat> --unpin
EOF
| Parameter | Type | Description |
|---|---|---|
| chat | string/int | Chat/group/channel |
| message_id | int | Message to pin (omit with --unpin to unpin all) |
--unpin | flag | Unpin instead of pin |
--silent | flag | Pin without sending notification |
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:pin-messagefrom 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./delete-messagesUse when user wants to delete, remove, or unsend Telegram messages from a chat, either for everyone or just for themselves./download-mediaUse when user wants to download, save, or extract media files such as photos, videos, and documents from Telegram messages.Other plugins' skills for the same job