Skip to content

Message

Hasan Yüksektepe edited this page Oct 9, 2022 · 6 revisions

Get All Messages

$instagram->user->get_inbox_threads();

Get Messages With User

  1. Param : Username
  2. Param : Group Message (Default : False)
$instagram->user->get_inbox_user_thread('hasokeyk',false);

Get Pending Messages

$instagram->user->get_my_pending_inbox();

Send Normal Message And Style Message

  1. Param : Username
  2. Param : Message
  3. Param : Message theme number (1 = heart, 2 = gift, 3 = confetti, 4 = fire)
$instagram->user->send_inbox_text('hasokeyk','Hi! I like instagram-pro lib',3);
//OR
$instagram->user->send_inbox_text_heart('hasokeyk','Hi! I like instagram-pro lib');
$instagram->user->send_inbox_text_gift('hasokeyk','Hi! I like instagram-pro lib');
$instagram->user->send_inbox_text_confetti('hasokeyk','Hi! I like instagram-pro lib');
$instagram->user->send_inbox_text_fire('hasokeyk','Hi! I like instagram-pro lib');

Send Link With Message

  1. Param : Username
  2. Param : Message
  3. Param : Message theme number (1 = heart, 2 = gift, 3 = confetti, 4 = fire)
$instagram->user->send_inbox_link('hasokeyk','Hi! I like instagram-pro lib',3);

Send Story With Message

  1. Param : Username
  2. Param : Story Media ID
$instagram->user->send_inbox_story('hasokeyk',123456789);

Send Photo With Message

  1. Param : Username
  2. Param : Media Full Path
$image_file_path = (__DIR__).'/instagram.jpg';
$instagram->user->send_inbox_photo('hasokeyk',$image_file_path);

Send Post With Message

  1. Param : Username
  2. Param : Media ID
$instagram->user->send_inbox_post('hasokeyk',123456789);
Clone this wiki locally