Telegram bot for maksat.PRO project
ruby --version #=> 2.4.1rails --version #=> 5.1.0
Copy example config files to you local and change necessary values (e.g. db username, db password or telegram bot token)
cp config/database.example.yml config/database.yml
cp config/secrets.example.yml config/secrets.ymlInstall gems
bundle installCreate database and run migrations
bundle exec rake db:create
bundle exec rake db:migrateRun poller bundle exec rake telegram:bot:poller or use rake bundle exec telegram:bot:set_webhook to update webhooks