Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ChenKuanSun/MobileClaw --skill telegram명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
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, linkSOC 직업 분류 기준