一键导入
search-messages
user wants to search for messages across all Telegram chats or within a specific chat, find old messages by text, or look up Telegram message.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
user wants to search for messages across all Telegram chats or within a specific chat, find old messages by text, or look up Telegram message.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
user wants to send a WhatsApp message, share a link or document via WhatsApp, generate a wa.me click-to-chat link, or message a contact on WhatsApp by phone number.
Claude Code hooks development guide. TRIGGERS - create hook, PostToolUse, PreToolUse, Stop hook, hook lifecycle, decision block.
Deploy static HTML files to Cloudflare Workers with 1Password credential management.
Dual-channel notifications on watchexec events. TRIGGERS - watchexec alerts, Telegram+Pushover, file change notifications.
Session log provenance tracking. TRIGGERS - who created, trace origin, session archaeology, ADR reference.
Generate custom Claude Code slash commands via guided question flow. TRIGGERS - create slash command, generate command, custom command.
| name | search-messages |
| description | user wants to search for messages across all Telegram chats or within a specific chat, find old messages by text, or look up Telegram message. |
| allowed-tools | Bash, Read, Grep, Glob |
Search messages globally across all chats or within a specific chat.
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'
SCRIPT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/tlg}/scripts/tg-cli.ts"
# Global search (all chats)
bun "$SCRIPT" search "search term" -n 20
# Search in specific chat
bun "$SCRIPT" search "keyword" --chat 2124832490
# Filter by sender
bun "$SCRIPT" search "topic" --from @username
# Combined: search in chat from specific sender
bun "$SCRIPT" search "query" --chat @groupname --from @sender -n 10
EOF
| Parameter | Type | Description |
|---|---|---|
| query | string | Search text (required) |
--chat | string/int | Limit to specific chat (omit for global) |
--from | string/int | Filter by sender |
-n/--limit | int | Max results (default: 20) |
--preview | int | Truncate each body to N chars (default: full text, multi-line indented). |
Default (full text, multi-line indented):
[YYYY-MM-DD HH:MM] [Chat Name] (id:12345) Sender: First line of body
continuation line 1 (indented under header)
continuation line 2
With --preview 100:
[YYYY-MM-DD HH:MM] [Chat Name] (id:12345) Sender: First line of body ⏎ continuation collapsed onto…
Use --preview N only for high-volume scans where you want one row per
message. Default = full text — long bodies are no longer silently
truncated at 150 chars (the prior default forced manual workarounds when
content actually mattered).
After this skill completes, check before closing:
Only update if the issue is real and reproducible — not speculative.