[Question] #603
Replies: 2 comments
-
|
https://github.com/adw0rd/instagrapi/discussions?discussions_q=MQTT |
Beta Was this translation helpful? Give feedback.
-
|
Update: this shipped in instagrapi 2.8.0. The new MQTT support is experimental and currently receive-oriented. It adds:
Minimal Direct receive loop: from instagrapi import Client
cl = Client()
cl.login(USERNAME, PASSWORD)
def handle_message(payload):
print(payload)
cl.realtime_on("message", handle_message)
rt = cl.realtime_connect()
rt.direct_subscribe()
while True:
rt.read_once()For replies and actions, keep using the normal Direct HTTP helpers such as Docs:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to get the messages from thread(s) in real-time without making api call again & again?
Beta Was this translation helpful? Give feedback.
All reactions