Read the Notes and fill out the form.
Switch to Preview for reading.
I'm trying to message the group, but I'm getting this error.
IgResponseError: POST /api/v1/direct_v2/threads/broadcast/text/ - 500 Internal Server Error;
Notes
Your issue will be closed if you violate any rule below.
You need to include a meaningful descriptions and e.g. a screenshot.
A specific question, so it's understandable to anyone.
You may add pictures.
YOUR QUESTION HERE
Code
A meaningful section of your code (else delete this). If you are using TypeScript replace js with typescript.
YOUR CODE HERE
const ig = new IgApiClient();
ig.state.generateDevice(process.env.IG_USERNAME);
await ig.simulate.preLoginFlow();
const loggedInUser = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
const userFeed = ig.feed.user(loggedInUser.pk);
const groups = ig.direct.createGroupThread(['user_id'], 'test')
const userId = "example_groups_send_thread"
const thread = ig.entity.directThread([userId.toString()]);
await thread.broadcastText('some link like');
Error and Output
If you've got an error put it here.
You can get the stacktrace in the most environments using
Error.stack (MDN Docs).
IgResponseError: POST /api/v1/direct_v2/threads/broadcast/text/ - 500 Internal Server Error;
General Question
Read the Notes and fill out the form. Switch to
Preview
for reading. I'm trying to message the group, but I'm getting this error. IgResponseError: POST /api/v1/direct_v2/threads/broadcast/text/ - 500 Internal Server Error;Notes
Your issue will be closed if you violate any rule below.
Form
Put an
[x]
if you meet the condition, else leave[ ]
.Question
A specific question, so it's understandable to anyone. You may add pictures.
YOUR QUESTION HERE
Code
A meaningful section of your code (else delete this). If you are using TypeScript replace
js
withtypescript
.Error and Output
If you've got an error put it here. You can get the stacktrace in the most environments using
Error.stack
(MDN Docs). IgResponseError: POST /api/v1/direct_v2/threads/broadcast/text/ - 500 Internal Server Error;