Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
noxzemart opened this issue Jun 28, 2021 · 5 comments
Open

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

noxzemart opened this issue Jun 28, 2021 · 5 comments

Comments

@noxzemart
Copy link

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

thanks.

@NicklasWallgren
Copy link
Owner

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

@noxzemart
Copy link
Author

@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.

@NicklasWallgren
Copy link
Owner

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.

@noxzemart
Copy link
Author

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.

@BigBalli
Copy link

BigBalli commented Apr 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants