telegram
Installation
SKILL.md
Telegram Bot API
Use the Telegram Bot API to send messages and manage bots.
API Base
https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/
Common Operations
Messaging
- Send message:
curl -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" -d "chat_id=${TELEGRAM_CHAT_ID}" -d "text=Hello" - Send with formatting:
curl -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" -d "chat_id=${TELEGRAM_CHAT_ID}" -d "text=*Bold* _italic_" -d "parse_mode=Markdown"
Bot Info
- Get updates:
curl "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/getUpdates" - Get bot info:
curl "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/getMe"