NicklasWallgren / instagram-api

Instagram Private API
MIT License
147 stars 47 forks source link

get pending inbox #14

Closed valkiriy closed 5 years ago

valkiriy commented 5 years ago

hi. how i get pending inbox and confirm then? and How to mark the thread read?

NicklasWallgren commented 5 years ago

Hey, It isn't possible at this time. I'll add the functionality in an upcoming release.

You are welcome to help out and create a PR.

NicklasWallgren commented 5 years ago

This will soon be available as of https://github.com/NicklasWallgren/instagram-api/tree/feature/inbox-confirm-and-get-unseen

$unseen = $message->getInbox()->getUnseen();

foreach ($unseen as $threadId => $unseenItemsInThread) {
    /**
     * @var ThreadItem $threadItem
     */
    $threadItem = current($unseenItemsInThread);

    $threadItem->seen();
}
valkiriy commented 5 years ago

Thanks!

NicklasWallgren commented 5 years ago

The feature has been merged into master.