Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.35 KB

README.md

File metadata and controls

50 lines (36 loc) · 1.35 KB

TUT.BY Telegram Bot

alt text

An absolutely simple bot for Telegram Messenger written in one night in Ruby for #1 news website in Belarus

Yes, it's always accessible by @tutbybot nickname.

What can you do now?

  • Read the latest news from variety of categories like politics, economics and etc.
  • Get the currencies (USD, EUR and BYR)
  • Searching for news

What are the next steps?

  • Subscriptions to the certain category of news
  • Ability to send your news to the editorial office

Usage for learning

  1. Fork it
  2. Obtain your Bot Token and Botan Token, copy secrets.rb to config folder and put your tokens like in example.
  3. Install necessary gems and run it as a background job.
$ bundle install
$ ruby app.rb start
  1. If you want to stop using it, just type:
$ ruby app.rb stop

Pay attention!

The API methods were obtained through decompiling the official TUT.BY Android application.

You have to configure your own secrets.rb in config folder.

Credits

  1. Dzmitry Chyrta
  2. Aleks Senkov