const { VK } = require('vk-io')
const vk = new VK({ token: token, pollingGroupId: id })
vk.upload.messagePhoto({ source: { value: `0.jpg` } })
.then((attachment) => { return console.log(attachment) })
.catch((error) => { return console.log(error) })