N
N
ninja op op2020-05-22 22:41:24
JavaScript
ninja op op, 2020-05-22 22:41:24

How to do something that I don't even know how to describe?

I need to add - questionManager.middleware, in .use
https://www.npmjs.com/package/vk-io-question
https://www.npmjs.com/package/vk-io

vk.updates.use(async (mes,next) => {
//...
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nitrojs, 2020-05-22
@kur4chyt

Well, everything is written there in the documentation for both libraries.

const { QuestionManager } = require('vk-io-question');
const questionManager = new QuestionManager();

vk.updates.use(questionManager.middleware);

// ... остальной код

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question