def send_group_msg(self, text="testing"): new_message = self.make_message(mto=room_jid, mbody=text, mtype='groupchat') utils.add_extra_params(new_message) utils.log("SND: " + str(new_message)) new_message.send()
def send_private_msg(self, text="testing", to=None): new_message = self.make_message(mto=to, mbody=text, mtype='chat') utils.add_extra_params(new_message) utils.log("SND: " + str(new_message)) new_message.send()
def send_group_msg(self, text="testing"): new_message = self.make_message(mto=self.room_jid, mbody=text, mtype='groupchat') new_message['id'] = str(ObjectId()) utils.add_extra_params(new_message) utils.add_markable(new_message) utils.log("SND: " + str(new_message)) new_message.send()