Skip to content
VKontakte adapter for the Lita chat bot.
Branch: master
Clone or download
Braiden Vasco
Braiden Vasco Change HTTPS links to HTTP
for Lita's site because of litaio/
Latest commit ab3d792 Jul 23, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Configure console to use Pry Jun 17, 2015
exe Add executable "lita-vkontakte" Jun 21, 2015
locales Initialize Lita adapter Jun 17, 2015
.rubocop.yml Configure RuboCop Jun 21, 2015
.yardopts Configure YARD Jun 17, 2015
LICENSE Initial commit Jun 16, 2015 Change HTTPS links to HTTP Jul 23, 2015
Rakefile Fix changelog generator Jun 17, 2015
lita-vkontakte.gemspec Increment version (1.1.0) Jun 29, 2015


Gem Version Build Status Coverage Status

VKontakte adapter for the Lita chat bot.


At first, see the documentation for Lita:


Add lita-vkontakte to your Lita instance's Gemfile:

gem 'lita-vkontakte', '~> 1.1.0'


Go to and create standalone application. Then go to application settings page and look at application ID and secure key.

Open terminal and type the following command (replace $LITA_VK_APP_ID with your application ID):

$ lita-vkontakte $LITA_VK_APP_ID

You will see a link. Open it in browser where you are authorized in VKontakte as your future chat bot's user. You will be redirected to some address. We need a parameter access_token from this URL.


Required attributes

  • app_id (String) - An ID of your application
  • app_secret (String) - A secure key of your application
  • access_token (String) - An acces token from URL


This is an example lita_config.rb file:

Lita.configure do |config| = 'Lita'
  config.robot.mention_name = 'lita'

  config.robot.adapter = :vkontakte

  config.adapters.vkontakte.app_id     = '2849670'
  config.adapters.vkontakte.app_secret = 'EtgJI2yFJ0GYzgDLSS8e'
  config.adapters.vkontakte.access_token  = '51jeIbjmmxJvKo7TTaW0Ext4cx6ajonDIbEkSjFofh7boyxH27JcjKXMODwZTaOxLA1bQbRyY0CEUM2TrXGK6'
You can’t perform that action at this time.