Overview of Telegram::Bot features
masterThe telegram-bot package provides a suite of tools for building Telegram bots, optimized for both Rails and standalone Ruby applications.
Core Components
- Lightweight Client: A thread-safe client for the Telegram Bot API using
httpclient. - Controller: A message parser that allows you to define methods for commands instead of using complex
casestatements. - Middleware & Routes: Helpers designed for production environments (typically webhook-mode).
- Poller: A tool for development environments that includes an automatic source-reloader.
- Rake Tasks: Utilities to manage and update webhook URLs.
- Async Mode: Support for offloading work to a queue adapter to handle network errors gracefully.
Deployment Modes
- Development: Use poller-mode for local development.
- Production: Use webhook-mode for production environments, though poller-mode is also supported.