I'm trying in any possible way to send a direct message to an user, but I can't find a way. Please can you help me?
I found a way to response to an instanciated chat, but I can't init a new chat. Any advise?
Assuming you're logged in:
const userId = await ig.user.getIdByUsername('username');
const thread = ig.entity.directThread([userId.toString()]);
await thread.broadcastText('Message from node');
Yes it's work. I forgot to write a response. Thank you.
I want create a chatbot for direct Instagram. I need to listen the chat from keep the conversation. This is possible? How?
Hello @trandreluis, you need to use the instagram_mqtt library by Nerixyz.
If you need help I'm available on Discord! Androz#2091
Thanks, man! I will analyze and test!
Most helpful comment
Assuming you're logged in: