instagram-private-api icon indicating copy to clipboard operation
instagram-private-api copied to clipboard

Sometimes the code dont send a comment on post

Open AndreZila01 opened this issue 1 year ago • 1 comments

Describe the bug Some post of my bot have comment and others dont have. i have 100% i send the message

To Reproduce Please indicate all steps that lead to this bug:

  1. Make Login with username and password
  2. Send a photo with caption (comment)
const postToInsta = async (texto, id) => {

    const imageBuffers = fs.readFileSync(`./new_image${id}.jpg`);
    console.log(`./new_image${id}.jpg || ${texto}`); // check if function receive all values

    await ig.publish.photo({
        file: imageBuffers,
        caption: texto, // text
    });
    await new Promise(resolve => setTimeout(resolve, 15000)); //make a setimeout to conclude all other posts.
}

Version

  • Node.js version 20.11.0
  • Lib version 1.45.3
  • OS (especially if you use Windows) Windows

Additional context With comment: https://www.instagram.com/p/C2LRoItrrsL/ With out comments: https://www.instagram.com/p/C2LRoVCrCqA/

AndreZila01 avatar Jan 24 '24 16:01 AndreZila01

It is still works. Maybe spam words in caption

sunmasters avatar Jul 09 '24 19:07 sunmasters