suphiyasin / instagram-api

Simple PHP Private API that allows you to use both mobile and web APIs of Instagram
https://suphi.org
MIT License
30 stars 10 forks source link

direct Message #3

Closed bad-robo closed 6 months ago

bad-robo commented 6 months ago

hi

How to direct everyone? by numerical ID I want to send direct messages to other people with some fake accounts and advertise my page.

$api->user->sendMessage();

You can only send direct messages to your followers with this function

suphiyasin commented 6 months ago

Currently, this function is only available in the API. I tested it and it worked with the same function when sending a message to a page I don't follow.

bad-robo commented 6 months ago

Yes, I also tested it and it worked But it works for sending a message (to the desired follower). It does not send anything to the second message. For example: First message: Hello Second message: I can design a website for you.

. . . It is a great program, thank you

suphiyasin commented 6 months ago

I'm glad it was useful to you. I will soon add functions to send messages to people you do not follow in webapi. I'm working on the TikTok API these days, so I haven't looked at it much.