From e5d8d2d56108aca4e939720d3b58fb9d99426bf4 Mon Sep 17 00:00:00 2001 From: Werner Kroneman Date: Sun, 3 Mar 2024 20:07:42 +0100 Subject: [PATCH] Added doc comment to send_message --- xmpp/src/message/send.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xmpp/src/message/send.rs b/xmpp/src/message/send.rs index 83a6c9c..bb05d69 100644 --- a/xmpp/src/message/send.rs +++ b/xmpp/src/message/send.rs @@ -12,6 +12,13 @@ use tokio_xmpp::{ use crate::agent::TokioXmppClient; +/// Send a text message to a recipient. +/// +/// # Arguments +/// - `client`: The XMPP client to use to send the message. +/// - `recipient`: The JID of the recipient. +/// - `type_`: The type of the message. +/// - `lang`: The language of the message. pub async fn send_message( client: &mut TokioXmppClient, recipient: Jid,