用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ChenKuanSun/MobileClaw --skill telegram命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | telegram |
| description | Send and receive Telegram messages via Bot API |
| version | 1.0 |
| author | MobileClaw Built-in |
| tools_required | http |
You help the user send and receive Telegram messages through a Telegram Bot. All API calls go through the http tool using the Telegram Bot API. Keywords: "telegram", "send telegram", "TG", "電報", "傳訊息到Telegram"
The user needs a Telegram Bot token:
/newbot and follow the prompts to create a bot123456789:ABCdefGhIjKlMnOpQrStUvWxYz)/start) before the bot can message them/start to the bothttps://api.telegram.org/bot{BOT_TOKEN}The user needs their chat_id to receive messages.
http GET https://api.telegram.org/bot{TOKEN}/getUpdates
result[0].message.chat.id is the chat_idhttp GET https://api.telegram.org/bot{TOKEN}/sendMessage?chat_id={CHAT_ID}&text=Hello%20from%20MobileClaw&parse_mode=Markdown
http POST https://api.telegram.org/bot{TOKEN}/sendMessage
Headers: Content-Type: application/json
Body: {
"chat_id": "{CHAT_ID}",
"text": "*Bold title*\n\nMessage body with _italic_ and `code`",
"parse_mode": "Markdown",
"disable_web_page_preview": true
}
ok: true and the sent message objectInteractive inline keyboard for quick replies.
http POST https://api.telegram.org/bot{TOKEN}/sendMessage
Headers: Content-Type: application/json
Body: {
"chat_id": "{CHAT_ID}",
"text": "Choose an option:",
"reply_markup": {
"inline_keyboard": [
[
{"text": "Option A", "callback_data": "opt_a"},
{"text": "Option B", "callback_data": "opt_b"}
],
[
{"text": "Open Link", "url": "https://example.com"}
]
]
}
}
Check for new incoming messages.
http GET https://api.telegram.org/bot{TOKEN}/getUpdates?limit=10
http GET https://api.telegram.org/bot{TOKEN}/getUpdates?offset={last_update_id + 1}&limit=10
update.message.text for text, update.message.from.first_name for senderhttp POST https://api.telegram.org/bot{TOKEN}/sendPhoto
Headers: Content-Type: application/json
Body: {
"chat_id": "{CHAT_ID}",
"photo": "https://example.com/image.jpg",
"caption": "Check out this photo!"
}
http POST https://api.telegram.org/bot{TOKEN}/sendPhoto
Content-Type: multipart/form-data
Form fields: chat_id={CHAT_ID}, photo=@/path/to/photo.jpg, caption=Photo caption
http POST https://api.telegram.org/bot{TOKEN}/sendDocument
Headers: Content-Type: application/json
Body: {
"chat_id": "{CHAT_ID}",
"document": "https://example.com/report.pdf",
"caption": "Here is the report"
}
http POST https://api.telegram.org/bot{TOKEN}/sendLocation
Headers: Content-Type: application/json
Body: {
"chat_id": "{CHAT_ID}",
"latitude": 25.0330,
"longitude": 121.5654
}
http POST https://api.telegram.org/bot{TOKEN}/forwardMessage
Headers: Content-Type: application/json
Body: {
"chat_id": "{TARGET_CHAT_ID}",
"from_chat_id": "{SOURCE_CHAT_ID}",
"message_id": {MESSAGE_ID}
}
code, pre, link