Skip to content

knack0x/tgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

520 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Server

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

About

Telegram bot, a utility bot for personal tasks.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors