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

How can I get ThreadID from a user who is not in my DirectInbox?

Open noxzemart opened this issue 4 years ago • 5 comments

Hello. How can I get ThreadID from a user who is not in my DirectInbox (thread) ?

thanks.

noxzemart avatar Jun 28 '21 01:06 noxzemart

@noxzemart Hey, you can only access threads which is currently in your inbox, as far as I know.

NicklasWallgren avatar Jun 28 '21 14:06 NicklasWallgren

@noxzemart Hey, you can only access threads which is currently in your inbox, as far as I know.

it mean that we will can't send message to user who not in DirectInbox. so we have another way to get ThreadId by user_id or user_name ? I think if we can get ThreadId we will can send the message to user that not in DirectInbox. thanks.

noxzemart avatar Jun 28 '21 14:06 noxzemart

Alright, you'll need to create a new thread using one of the direct_v2/threads/broadcast api endpoints, and send the user ids as "recipient_users".

I haven't implemented support for those endpoints yet.

NicklasWallgren avatar Jun 28 '21 15:06 NicklasWallgren

Alright, you'll need to create a new thread using one of the direct_v2/threads/broadcast api endpoints, and send the user ids as "recipient_users".

I haven't implemented support for those endpoints yet.

sorry I miss understand with this point. could you provide me more detail about this ? thanks.

noxzemart avatar Jun 28 '21 16:06 noxzemart

you can send a first message (no existing thread) by using $instagram->sendDirectMessage

BigBalli avatar Apr 08 '23 17:04 BigBalli