I’ve decided to implement Telegram notifications into one of my pet project - Evendy.ru.
After some googling I’ve found great gem https://github.com/telegram-bot-rb/telegram-bot, gem is actively maintained and have great documentation.
So, if you want to implement Telegram messages into some channel you need to follow this simple easy steps:
1) Create new bot using @BotFather bot, and get secret token.
2) Create Telegram channel from your Telegram client, and add new bot as Administrator.
3) Create config/initializers/telegram.rb
4) Just send message to your public channel:
If you want you can add more custom commands with overriding default controller with custom:
And add to your routes.rb:
Some example bot action:
More: telegram-bot gem
Example bot usage: