From 075812adf36dbe4256f676d838effaf91eab249d Mon Sep 17 00:00:00 2001 From: jinyu <96060102+jinyu2022@users.noreply.github.com> Date: Fri, 22 Nov 2024 20:37:45 +0800 Subject: [PATCH] fix: Update msg_kwargs documentation to clarify required parameters for make_message --- slixmpp/plugins/xep_0461/reply.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slixmpp/plugins/xep_0461/reply.py b/slixmpp/plugins/xep_0461/reply.py index 47999b5b..ebceaacf 100644 --- a/slixmpp/plugins/xep_0461/reply.py +++ b/slixmpp/plugins/xep_0461/reply.py @@ -47,10 +47,11 @@ class XEP_0461(BasePlugin): :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: Additional message parameters + :param msg_kwargs: Parameters are consistent with the make_message method, + required parameters are ``mto`` and ``mbody`` """ - msg = self.xmpp.make_message(mto=reply_to, **msg_kwargs) + msg = self.xmpp.make_message(**msg_kwargs) msg["reply"]["to"] = reply_to msg["reply"]["id"] = reply_id if fallback: