Created
August 16, 2019 16:08
-
-
Save Petrivah/78a6e7c74705c9dd925de1df414a9a37 to your computer and use it in GitHub Desktop.
Negezor, what's wrong?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { VK } = require('vk-io') | |
, { createCanvas } = require('canvas'); | |
let canvas = createCanvas(1590, 400, 'svg') | |
, ctx = canvas.getContext('2d'); | |
let {updates,upload} = new VK({ | |
token: 'tokentokentokentokentokentokentokentokentokentokentokentokentokentokentokentoken' | |
}); | |
ctx.fillText('Testin\'', 30, 30); | |
upload.groupCover({ | |
source: canvas.toBuffer(), | |
group_id: 172953153 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment