How to create your own Telegram bot:
- Make sure your machine is Ruby ready
- Clone the project (tip: clone into your project name folder, i.e.
git clone [email protected]:araishikeiwai/telegram-bot-template.git project-name
) - Modify the git remote url in case you want to push it to your own repository
- Run
cd project-name
- Run
cp env.sample .env
- Modify .env to suits your needs
- Modify
Gemfile
to your needs - Run
bundle install
- Run
bundle exec rake [namespace]:init
(namespace is what you defined inconfig/inits/init.rb
) - Add your bot logic to the InputProcessor class located in
lib/[namespace]/input_processor.rb
- Run your bot with
bundle exec rake [namespace]:start