Virtus types for Telegram Bot API.
Add following line to your Gemfile:
gem 'telegram-bot-types'
And then execute:
$ bundle
Or install it system-wide:
$ gem install telegram-bot-types
updates = bot.get_updates.map do |x|
Telegram::Bot::Types::Update.new(x)
end
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request