const { Updates, Upload, API } = require('vk-io') const api = new API({ token: 'мой токен' }) const upload = new Upload({ api }); const updates = new Updates({ api, upload }); updates.on('message', async (context) => { console.log(context.isChat) }) updates.startPolling()