# README
Telegram Scripts
Notes
Telegram API
https://core.telegram.org/bots/api
curl https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getMe | jq
curl https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates | jq
Set a Bot command (default scope)
curl -X POST \
-H "Content-Type: application/json" \
-d '{"commands":[{"command":"test","description":"description with spaces"}]}' \
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setMyCommands
Send a message with newlines
curl -X POST \
-H "Content-Type: application/json" \
-d '{"parse_mode": "HTML", "chat_id": "<CHAT_ID>", "text": "<b>My title</b>%0AMy body"}' \
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/sendMessage