
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
node-vk-bot-sdk
Advanced tools
Небольшое SDK для создания чат-ботов с использованием Node.JS на платформе сообществ ВКонтакте.
Рекомендуется использовать с версиями VK API выше 5.103.
$ npm install node-vk-bot-sdk
или
$ yarn add node-vk-bot-sdk
const express = require('express');
const { VkBotSdk } = require('node-vk-bot-sdk');
const app = express();
const sdk = new VkBotSdk({
group_id: 0,
secret: '',
confirmation: '',
access_token: ''
});
const bot = sdk.getCallback();
bot.command(/test/, (ctx, params) => {
ctx.reply(`reply to ${ctx.from_id}`);
});
bot.defaultReply((ctx, params) => {
ctx.reply('Default reply');
});
app.use(express.json());
app.all('/callback', bot.eventsCallback);
app.listen(8080);
| Значение | Тип | Описание |
|---|---|---|
| ctx.event | string | Тип полученного события |
| ctx.data | object | Полученные данные в событии |
| ctx.group_id | number | ID сообщества |
| ctx.event_id | number | ID события |
| ctx.user_id | number | Псевдоним для ctx.from_id |
| ctx.from_id | number | ID автора сообщения (ID затрагиваемого пользователя для других событий) |
| ctx.peer_id | number | ID дилога (ID затрагиваемого пользователя события для других событий) |
| ctx.message | string | Преобразованный текст сообщения (пустая строка для других событий) |
| ctx.orig_message | string | Оригинальный текст сообщения |
| ctx.client_info | object | Данные о клиенте пользователя или стандартный объект |
| ctx.reply(text, attachment, keyboard) | function | Отправляет ответ с текстом, вложениями и клавиатурой |
| ctx.replyKeyboard(text, keyboard) | function | Отправляет ответ с текстом и клавиатурой |
| ctx.replyAttachment(attachment) | function | Отправляет ответ только с вложениями |
| ctx.replyCustom(params) | function | Отправляет ответ с кастомными параметрами |
| ctx.isKeyboardSupported() | function | Возвращает информацию из client_info |
| ctx.isInlineKeyboardSupported() | function | Возвращает информацию из client_info |
| ctx.isCarouselSupported() | function | Возвращает информацию из client_info |
FAQs
A simple bot SDK for vk.com
We found that node-vk-bot-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.