Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Any way to query messages by messageID? #850

Open
AstroCB opened this issue Nov 29, 2020 · 5 comments · May be fixed by #865
Open

Any way to query messages by messageID? #850

AstroCB opened this issue Nov 29, 2020 · 5 comments · May be fixed by #865

Comments

@AstroCB
Copy link
Contributor

AstroCB commented Nov 29, 2020

I'm looking to retrieve attachments for a message after it's been sent, and I was hoping to do this when a reaction is received on that message, but I'm not sure that's possible.

The message_reaction message type only gives you the original message's ID as a reference point (unlike the message_reply type, which inlines the entire message object for the replied message).

Is it possible to look up the original message object via its messageID with the existing API? If not, is it feasible to add the entire message object to the message_reaction payload the way we do with message_reply messages? Or is this something Facebook explicitly includes in the payloads for these message types that we don't have control over?

@AstroCB
Copy link
Contributor Author

AstroCB commented Nov 29, 2020

Or is this something Facebook explicitly includes in the payloads for these message types that we don't have control over?

A quick glance at the payload construction for these message types in the source leads me to believe this is likely the case 😞

@HossamMohsen7
Copy link
Contributor

There is an endpoint that Facebook uses to fetch the group image change event by messageID. I'll have to test if it works with other messages then I could implement it here.

@AstroCB
Copy link
Contributor Author

AstroCB commented Dec 4, 2020

@7osCraft that would be fantastic! Let me know if there's anything I can do to assist.

@AstroCB
Copy link
Contributor Author

AstroCB commented Dec 24, 2020

@7osCraft I'd also be happy to look into it as well if you point me in the right direction – when exactly is that endpoint hit?

@HossamMohsen7
Copy link
Contributor

I'm sorry for the delay. The endpoint is hit when someone changes a group's image.

@AstroCB AstroCB linked a pull request Feb 5, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants