Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ayanami

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ayanami

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

[codecov] (https://codecov.io/gh/patiOne/Ayanami) [CircleCI] (https://circleci.com/gh/patiOne/Ayanami) [Gitter] (https://gitter.im/patiwan/Ayanami?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

Ayanami

"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.

Installation

Add this line to your application's Gemfile:

gem 'Ayanami'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ayanami

Usage

You can start by creating a Bot object.

b = Ayanami::Bot.new('YOUR_BOT_TOKEN_GOES_HERE')

To confirm the connection, You can invoke the get_me function to see your bot identity.

puts b.get_me

To get received messages or other updates, You can invoke the get_updates function to receive updates.

puts b.get_updates()

You can also send a simple message to a group/user by invoking the send_message function.

puts b.send_message(chat_id: USER_OR_CHAT_ID_GOES_HERE, text: 'Hello :)')

For more information about the included functions, Please consult Telegram's Bot API documentation

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test 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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/patiOne/Ayanami.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 02 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc