[docs]defmake_reply(self,reply_to:JidStr,reply_id:str,fallback:Optional[str]=None,quoted_nick:Optional[str]=None,**msg_kwargs):"""Create a replies message stanza :param reply_to: Full JID of the quoted author :param reply_id: ID of the message to reply to :param fallback: Body of the quoted message :param quoted_nick: nickname of the quoted participant :param msg_kwargs: Parameters are consistent with the make_message method, required parameters are ``mto`` and ``mbody`` """msg=self.xmpp.make_message(**msg_kwargs)msg["reply"]["to"]=reply_tomsg["reply"]["id"]=reply_idiffallback:msg["reply"].add_quoted_fallback(fallback,quoted_nick)returnmsg
[docs]defsend_reply(self,reply_to:JidStr,reply_id:str,fallback:Optional[str]=None,quoted_nick:Optional[str]=None,**msg_kwargs):""" :param reply_to: Full JID of the quoted author :param reply_id: ID of the message to reply to :param fallback: Body of the quoted message :param quoted_nick: nickname of the quoted participant """msg=self.make_reply(reply_to,reply_id,fallback,quoted_nick,**msg_kwargs)msg.send()