https://github.com/telegram-bot-rb/telegram-bot-types
Virtus types for telegram bot api. See PR for dry-types support
https://github.com/telegram-bot-rb/telegram-bot-types
bot dry-rb ruby telegram virtus-types
Last synced: 3 months ago
JSON representation
Virtus types for telegram bot api. See PR for dry-types support
- Host: GitHub
- URL: https://github.com/telegram-bot-rb/telegram-bot-types
- Owner: telegram-bot-rb
- License: mit
- Created: 2016-02-23T05:06:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T21:48:40.000Z (about 1 year ago)
- Last Synced: 2025-03-24T00:38:12.222Z (3 months ago)
- Topics: bot, dry-rb, ruby, telegram, virtus-types
- Language: Ruby
- Homepage:
- Size: 68.4 KB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Telegram::Bot::Types
Virtus types for Telegram Bot API.
[](http://badge.fury.io/rb/telegram-bot-types)
[](https://app.travis-ci.com/github/telegram-bot-rb/telegram-bot-types)## Installation
Add following line to your Gemfile:
```ruby
gem 'telegram-bot-types'
```And then execute:
```shell
$ bundle
```Or install it system-wide:
```shell
$ gem install telegram-bot-types
```## Usage
```ruby
updates = bot.get_updates.map do |x|
Telegram::Bot::Types::Update.new(x)
end
```## Contributing
1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request