-
git clone https://github.com/ChangeInit/idea-bot
-
Create a Telegram bot using @BotFather
-
Setup your .env with the appropriate keys
-
bundle install
-
Configure your database in
config/database.yml
-
Create the database
rails db:create
-
On production
rails telegram:bot:set_webhook
to configure the webhook to communicate with Telegram. Or in developmentrails telegram:bot:poller
to configure the poller.
When things get weird run rails db:reset
Shrine used for simpler setup. You can do
this in config/initializers/shrine.rb
.
heroku run rake db:schema:load
heroku run rails telegram:bot:set_webhook
Heroku for hosting AWS S3 for file hosting