subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.19k stars 666 forks source link

Get DirectMessage Object from ID #1401

Open OpenSaned opened 1 year ago

OpenSaned commented 1 year ago

I have the ID of a Message, I would like to get the Message as an DirectMessage Object, this is not possible with the current API. As a workaround, I manually get the most recent messages, and loop until I get the Intended Message, Is there a more elegant Approach?

adw0rd commented 1 year ago

I don't know, but you can explore the API yourself, prepare an implementation and send it as a PR

https://github.com/adw0rd/instagrapi/discussions/1182

https://www.alexschnabl.com/blog/articles/using-proxyman-to-reverse-engineer-the-instagram-private-api

https://adw0rd.com/2020/03/26/sniffing-instagram-charles-proxy/en/