agentleFS
uvwtuvwt/agentdock-skills/skills/telegram-official/SKILL.md

telegram-official

Skill6 starsChanged 3 months agoApache-2.0View on GitHub

Send Dock notifications through Telegram's official Bot API using only Python standard library and api.telegram.org.

  • Reads credentials

The file

Files
SKILL.md

Telegram Official Bot API Skill

通过 Telegram 官方 Bot API 给 Dock 发送通知。

能力

  • send:发送普通文本消息。
  • event:发送格式化的 Dock 事件通知。
  • updates:读取精简后的 getUpdates 输出,用于发现 chat_id。
  • health:调用 getMe 验证 token 和官方 API 连通性。

安全

  • 只访问 https://api.telegram.org。
  • 不登录 Telegram 个人号,不读取用户私聊历史。
  • 不依赖第三方 Telegram SDK、MCP server 或代理服务。
  • 不接受 token 作为 action input 或 CLI 参数。
  • token 只从 TELEGRAM_BOT_TOKEN / TG_BOT_TOKEN / .env 读取。

辅助脚本执行

Skill 本体是本说明文档。确需调用包内辅助脚本时,在 Skill 包根目录使用相对路径执行;运行宿主负责切换到包根目录并把所需变量注入当前子进程。

printf '%s' '{"skill_action":"<动作>"}' | python3 run.py

输入必须是 JSON 对象。写操作仍按本文档中的确认规则执行。

动作用途
sendSend a text message to the configured Telegram chat.
eventSend a formatted Dock event notification.
updatesRead compact getUpdates output to discover chat ids.
healthCall getMe to verify token and official Bot API connectivity.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.