1) get an apikey from @botfather

2) check bot
curl -i -X GET https://api.telegram.org/bot{apikey}/getMe

3) get chatid
curl -i -X GET https://api.telegram.org/bot{apikey}/getUpdates

4) be happy
curl -i -X GET https://api.telegram.org/bot{apikey}/sendMessage?chat_id={chatId}&text={someText}