Nerixyz / instagram_mqtt

Realtime and Push Notification (FBNS) support for the instagram-private-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get pending messages

amirpdlll opened this issue · comments

Hello ;

Is there a way to get pending messages in real time ?

thanks

commented

This is done with the regular api. It's the directPending feed.

thank you ,

For approving all directs and reading them which is the proper way ?

  1. after ig.login I create a while with sleep (delay) and read pending directs every 1 minute

2.I create a crontab or cronjob and lauch all the approve.js file every one minute?

thank you

commented
1. after ig.login I create a while with sleep (delay) and read pending directs every 1 minute

That's ok, there's probably a way of using FBNS for that, but this solution will work, you might have to increase the delay a bit.

1. after ig.login I create a while with sleep (delay) and read pending directs every 1 minute

That's ok, there's probably a way of using FBNS for that, but this solution will work, you might have to increase the delay a bit.

thank you so much ;)

1. after ig.login I create a while with sleep (delay) and read pending directs every 1 minute

That's ok, there's probably a way of using FBNS for that, but this solution will work, you might have to increase the delay a bit.

is it better to make random delay ? between 1 and 2 minutes ?

commented
1. after ig.login I create a while with sleep (delay) and read pending directs every 1 minute

That's ok, there's probably a way of using FBNS for that, but this solution will work, you might have to increase the delay a bit.

is it better to make random delay ? between 1 and 2 minutes ?

I've used 2min in the past but longer/random delays are not bad.