Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

Releases: k-egor-smirnov/vk-next

VK Next 0.0.4

14 Jan 09:36
f942f2c
Compare
Choose a tag to compare
VK Next 0.0.4 Pre-release
Pre-release
  • Added LongPool API
    Example of use:
const Next = require('vk-next')
const LocalQueue = require('vk-next/lib/queue/LocalQueue')

const vk = new Next(
  'YOUR TOKEN',
  new LocalQueue(),
  true
)

async function bot() {
  await vk.startPooling()

  vk.on('message', async message => {
    if(message.flags.includes('CHAT')) {
      let res = await vk.api.messages.send({
        user_id: message.peer_id,
        message: `Debug:\n ${JSON.stringify(message)}`
      })
  
      console.log(res)
    }
  })
}

bot()

VK Next 0.0.3

14 Jan 01:18
eeeaf1c
Compare
Choose a tag to compare
VK Next 0.0.3 Pre-release
Pre-release
  • Исправлен README
  • Пофикшен нейминг

VK Next 0.0.2

14 Jan 01:17
6797f22
Compare
Choose a tag to compare
VK Next 0.0.2 Pre-release
Pre-release

Нерабочая версия, используйте 0.0.3

  • Вызовы VK API перенесены в execute, теперь от имени группы в теории можно вызывать 500 методов в секунду, а от пользователя 75 методов

VK Next 0.0.1

14 Jan 01:16
Compare
Choose a tag to compare
VK Next 0.0.1 Pre-release
Pre-release
  • Добавлен VK API