dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.97k stars 1.14k forks source link

message the group IgResponseError: POST /api/v1/direct_v2/threads/broadcast/text/ - 500 Internal Server Error; #1439

Open mahsunodunkiran opened 3 years ago

mahsunodunkiran commented 3 years ago

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 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;

YOUR WELL FORMATTED ERROR
YOUR OUTPUT GOES HERE
huseyinkarael commented 3 years ago

i have the same problem

huseyinkarael commented 3 years ago

i have the same problem

Salpadding commented 3 months ago

+1