Androz2091 / insta.js

💬 Object-oriented library for sending and receiving messages via Instagram
138 stars 42 forks source link

Finally add the possibility to post picture 📷 #83

Open NaNonnI opened 2 years ago

NaNonnI commented 2 years ago

Future update will come. How to use; -With web picture (request-promise):

const imageBuffer = await get({ url: 'https://picsum.photos/800/800', // random picture with 800x800 size encoding: null, // this is required, only this way a Buffer is returned }); let post = client.user.postPicture(imageBuffer, "Test!") if (post) return message.chat.sendMessage("Posté!")

-Picture on disk (fs): const path = await readFileAsync("../../image.jpeg"); let post = client.user.postPicture(path, "Test!") if (post) return message.chat.sendMessage("Posté!")

CSFelix commented 2 years ago

Hii, do you have a schedule day to release this update?

NaNonnI commented 1 year ago

Hii, do you have a schedule day to release this update?

Hey sorry I am really busy at the moment but I can search to add the tag option and location option, we will see later (but don't hope too much, if you want the option to post picture just add my code in the package)