telegram-bot:Telegram的Bot API的另一个客户端

时间:2024-06-02 00:49:36
【文件属性】:

文件名称:telegram-bot:Telegram的Bot API的另一个客户端

文件大小:17KB

文件格式:ZIP

更新时间:2024-06-02 00:49:36

Ruby

TelegramBotRuby 安装 将此行添加到您的应用程序的Gemfile中: gem 'telegram_bot_ruby' 然后执行: $ bundle 或将其自己安装为: $ gem install telegram_bot_ruby 快速开始 设置客户 require 'telegram_bot' bot = TelegramBot . new ( token : < token> ) bot . listen ( method : :webhook , url : '/meow/meow' ) # not implemented yet # or bot . listen ( method : :poll , interval : 1 ) 设置更新监听器 bot . on :command , 'ping' do # /ping reply 'pong' en


网友评论