pcurz
pcurz
`const Instagram = require('instagram-web-api'); const fs = require ('fs'); const { username, password } = require("./config.json"); const client = new Instagram({ username, password }); const photo = fs.readFileSync("./image.jpeg"); client.login().then(async() =>...
``` const res = await ig.publish.photo({ file: finalBuffer }); const sticker = new StickerBuilder().add(StickerBuilder.attachmentFromMedia(res.media, { width: number, height: number }).center()).build(); const story = await ig.publish.story({ file: img, stickerConfig: sticker}); ```...
> @xfrcc is this working for you? You said it doesn't render the post. Then you said you need to prepare the image with node-canvas. I am confused. Does it...
And the resolution is to maintain the aspect ratio used in the stories (9:16)
> Basically in the app, when you tap on a post image in story anywhere, it will open the post. So you need the sticker to mark the location while...
The example I sent shares the publication that was uploaded by the same module, but I don't think it is difficult to obtain the `media` of a specific post
For gradient background this should do the work ``` const canvas = createCanvas(1080, 1920); img = new Image; img.src = postImageBuffer; const context = canvas.getContext('2d'); const x = (canvas.width -...
> Does this module respect the rate limits (especially for the feeds), or do I have to implement that myself? must implement that yourself
Yes, for too many logins you must wait 24 hrs.
I've never managed to make a properly dbformat for NPS tsv files, can you help me please? EDIT: i've managed, don't worry