comparison sat/core/xmpp.py @ 3179:84a94b385760

bridge: messageSend's extra is now serialised
author Goffi <goffi@goffi.org>
date Fri, 21 Feb 2020 12:17:38 +0100
parents b9a2dd4d750a
children 8565af209234
comparison
equal deleted inserted replaced
3178:98b321234068 3179:84a94b385760
553 553
554 @param post_xml_treatments(D): the same Deferred as in sendMessage trigger 554 @param post_xml_treatments(D): the same Deferred as in sendMessage trigger
555 """ 555 """
556 raise NotImplementedError 556 raise NotImplementedError
557 557
558 def sendMessage(self, to_jid, message, subject=None, mess_type="auto", extra=None, 558 def sendMessage(
559 uid=None, no_trigger=False,): 559 self, to_jid, message, subject=None, mess_type="auto", extra=None, uid=None,
560 no_trigger=False):
560 r"""Send a message to an entity 561 r"""Send a message to an entity
561 562
562 @param to_jid(jid.JID): destinee of the message 563 @param to_jid(jid.JID): destinee of the message
563 @param message(dict): message body, key is the language (use '' when unknown) 564 @param message(dict): message body, key is the language (use '' when unknown)
564 @param subject(dict): message subject, key is the language (use '' when unknown) 565 @param subject(dict): message subject, key is the language (use '' when unknown)