Telegem

Telegram Bot Framework for Ruby

Version
Loading...
Downloads
Loading...

Quick Start

Installation

# Add to Gemfile gem 'telegem' # Or install directly $ gem install telegem

Basic Usage

require 'telegem' bot = Telegem.new("YOUR_BOT_TOKEN") bot.command('start') do |ctx| ctx.reply("Welcome to Telegem!") end bot.command('help') do |ctx| ctx.reply("Available commands: /start, /help") end # Start the bot bot.start_polling
Replace YOUR_BOT_TOKEN with your actual Telegram Bot token from @BotFather