instagram-private-api
instagram-private-api copied to clipboard
Sometimes the code dont send a comment on post
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:
- Make Login with username and password
- 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/
It is still works. Maybe spam words in caption