Telegram API
As we know that Telegram is a messaging app identifies users by their mobile number. Fortunately, Telegram has its own API -Ruby has a wrapper gem for Telegram's Bot API called telegram-bot-ruby - which allows you to Integrate with other services, create custom tools, build single- and multiplayer games, build social services, do virtually anything else; Do you smell anything evil here?
Install telegram-bot gem
Basic usage
As many APIs, you have to get a token to deal with your bot. Here a basic usage
Once your run it, go to your telegram and find the bot and start chat with /start
, try to send /rubyfu
.
Inline bots
If you got that evil smile from above example, you may thinking about interacting with your bots inline to call/@mention your bots and request more action from the bot(s).
Resources
A good topic about Quickly Create a Telegram Bot in Ruby can be found here.
Last updated