Telegram::Bot::Types
Virtus types for Telegram Bot API.
Installation
Add following line to your Gemfile:
gem 'telegram-bot-types'
And then execute:
$ bundle
Or install it system-wide:
$ gem install telegram-bot-types
Usage
updates = bot.get_updates.map do |x|
Telegram::Bot::Types::Update.new(x)
end
Contributing
- 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