Comments (5)
I'm not sure whether you'll receive message events using the realtime client on pending threads, but on accepted threads you'll want to look into the RealtimeClient
. Now for pending threads, you can expect a notification, so fbns
might be helpful here.
so that i can receive messages smoothly
I don't know what "smoothly" is in this context. You either get the message using the HTTP Api or the RealtimeClient
.
from instagram_mqtt.
No, I am only receiving messages from RealtimeClient
for which threads are already accepted. But if i receive a message from a user first time , i have to first accept request from Instagram then i start receiving messages from that thread.
That's why i ask how can i get real time direct messages requests like real time messages and smoothly means here real time nothing else.
Anyway thanks for response and for fbns
suggestion and it will be a great help if you just tell me what should i look in fbns
for pending threads
from instagram_mqtt.
@jafferkazmi572 You can use FBNS. When someone will send you a DM it will emit the following payload:
super_user_root_2 is the user. THREAD_ID is the ID of the thread. USER_ID is the id of super_user_root_2 and MY_USER_ID is the user id of the bot using instagram_mqtt.
{
message: 'super_user_root_2 wants to send you a message.',
igAction: 'direct_v2?id=THREAD_ID&t=p',
actionPath: 'direct_v2',
actionParams: [Object: null prototype] {
id: 'THREAD_ID',
t: 'p'
},
collapseKey: 'direct_v2_message',
optionalAvatarUrl: 'XXXXXXXXXX',
sound: 'default',
pushId: 'XXXXXXXXXX',
pushCategory: 'direct_v2_pending',
intendedRecipientUserId: MY_USER_ID,
sourceUserId: 'USER_ID',
badgeCount: {}
}
from instagram_mqtt.
Androz2091/insta.js@af89d78 could help you.
from instagram_mqtt.
yeah thanks @Androz2091 , i have used fbns and it solved my problem
from instagram_mqtt.
Related Issues (20)
- FbnsClient Push Notification not working HOT 7
- Will there be any updates? HOT 1
- Live Realtime Comments HOT 13
- is that possible for follow and un follow HOT 1
- MQTT disconnection issue. (also some questions) HOT 9
- ClientDisconnectedError: MQTToTClient got disconnected. HOT 6
- iOS Reverse Engineering HOT 5
- How can I make this work on nodejs? HOT 7
- [Q] Can I be notified of new posts and stories? HOT 6
- Can i receive likes and comments on my post? HOT 5
- Problem building HOT 1
- Server error on getting new direct message HOT 2
- Not getting reels in realtime response HOT 5
- Unable to fetch realtime comments and view count for live video broadcast HOT 4
- Error when running npm i instagram_mqtt HOT 33
- "replied_to_message" field missing for messages on /ig_message_sync HOT 4
- Instagram Lite ? HOT 5
- realtime client doesnt work in v1 HOT 6
- 400 Bad Request; Invalid Parameters
- instagran mqtt in python HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagram_mqtt.