"If I die, I can be replaced" - Rei Ayanami
A Telegram Bot API for Ruby that focuses on simplicity. Ayanami is meant to be a simple interface to Telegram's Bot API.
The Goal of Ayanami is to keeping it simple and barebone, so other people can use it for their own purposes/needs.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install ayanami
You can start by creating a Bot object.
b = ::.('YOUR_BOT_TOKEN_GOES_HERE')
To confirm the connection, You can invoke the
get_me function to see your bot identity.
To get received messages or other updates, You can invoke the
get_updates function to
You can also send a simple message to a group/user by invoking the
puts b.(chat_id: USER_OR_CHAT_ID_GOES_HERE, text: 'Hello :)')
For more information about the included functions, Please consult Telegram's Bot API documentation
After checking out the repo, run
bin/setup to install dependencies. Then, run
to run the tests. You can also run
bin/console for an interactive prompt that will allow
you to experiment.
To install this gem onto your local machine, run
bundle exec rake install.
Bug reports and pull requests are welcome on GitHub at https://github.com/patiOne/Ayanami.
The gem is available as open source under the terms of the MIT License.