Skip to content

Instantly share code, notes, and snippets.

@Petrivah
Created August 16, 2019 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Petrivah/78a6e7c74705c9dd925de1df414a9a37 to your computer and use it in GitHub Desktop.
Save Petrivah/78a6e7c74705c9dd925de1df414a9a37 to your computer and use it in GitHub Desktop.
Negezor, what's wrong?
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