diff --git a/examples/echo_client.py b/examples/echo_client.py index ee9fd55..af526ba 100644 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -156,6 +156,12 @@ class EchoBot(ClientXMPP): # `encrypt_message` excepts the plaintext to be sent, a list of # bare JIDs to encrypt to, and optionally a dict of problems to # expect per bare JID. + # + # Note that this function returns an `` object, + # and not a full Message stanza. This combined with the + # `recipients` parameter that requires for a list of JIDs, + # allows you to encrypt for 1:1 as well as groupchats (MUC). + # # TODO: Document expect_problems recipients = [mto] encrypt = await self['xep_0384'].encrypt_message(body, recipients)