{"repo":"telegram-bot-rb/telegram-bot","free":true,"listed":false,"github":"https://github.com/telegram-bot-rb/telegram-bot","clone":"git clone https://github.com/telegram-bot-rb/telegram-bot.git","description":"Ruby gem for building Telegram Bot with optional Rails integration","language":"Ruby","stars":678,"topics":["ruby","rails","telegram","bot","webhook","poller","async","controller","telegram-bot","hot-reload"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Telegram::Bot Tools for developing Telegram bots. Best used with Rails, but can be used in standalone app. Supposed to be used in webhook-mode in production, and poller-mode in development, but you can use poller in production if you want. Package contains: - Lightweight client for bot API (with fast and thread-safe httpclient under the hood). - Controller with message parser: define methods for commands, not case branches. - Middleware and routes helpers for production env. - Poller with automatic source-reloader for development env. - Rake tasks to update webhook urls. - Async mode . Let the queue adapter handle network errors! Here is sample telegram bot app with session, keyboards and inline queries. Run it on your local machine in 1 minute! And here is app template to generate new rails app in seconds. See examples and cookbook in the wiki. Table of Contents Installation Usage Configuration Configuration in Rails app Client Typed responses Controller Reply helpers Optional typecasting Session Message context Callback queries Routes in Rails app Processing updates Development & Debugging Testing Deployment Async mode Limitations Development Contributing Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: Require if necessary: Usage Configuration While clients can be instantiated explicitly, there is Telegram.bots config= method to configure app-wide clients, which are accessible via Telegram.bots . It accepts hash of {bot","default_branch":null,"files":null,"tree":[],"storefront":"/r/telegram-bot-rb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/telegram-bot-rb/telegram-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}