Steps:
- Create bot with BotFather
- Run ruby program with credentials.
- Deploy on Heroku
- Open Telegram
- Search user @BotFather
- Run
/newbot
and set: Bot name and Username.
You will get:
- Bot URL: ...
- TOKEN (HTTP API): ...
Use
/help
for a list of commands.For a description of the Bot API, see this page: https://core.telegram.org/bots/api
- Create a Telegram group and add your bot.
Related links:
gem install telegram-bot-ruby
, install ruby gem.- Run ruby program main.rb