Ruby wrapper for VK Teams Bot API
gem install vkteamsbot
Simple echo bot:
require 'vkteamsbot'
VKTeams::Bot.new('token') do |bot|
bot.listen do |event|
bot.send_msg("echo #{event.text}", event.chat_id)
end
end
more examples in bin/
- Thank you Cyril David (author by gem requests)
- And thank you Matz for wonderful Ruby