How to implement the option of reply to in Smack

I’m developing an XMPP client that is initially for the Android platform, but it will be cross-platform. One of the functions I need is similar to Teams or other messaging applications, which is the option to reply to a specific message. I would like to know how I can implement this. Is there any XEP that gives me the option to reply to a message based on the original message ID? Or to send the entire original message in the body? I couldn’t find how to implement this function. If anyone can help me,