- Create a bot
- Gets its API token (via @BotFather)
- Get the ID of the channel
- Run bot.rb
- Ping your bot in the chat that you want the id for
- If it's a group chat, ensure bot has access to messages: @BotFather Bot Settings >> Group Privacy >> Turn off
API Docs for sending a message: https://core.telegram.org/bots/api#sendmessage
$ curl -X POST \
-H 'Content-Type: application/json' \
-d '{"chat_id": "123456789", "text": "This is a test from curl", "disable_notification": true}' \
https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage