def update(self): xml = tostring( E.chat( E.token(self.token) ), pretty_print=True, xml_declaration=True) response = self.request(xml) self.process_update(response)
def send(self, message): xml = tostring( E.chat( E.send(E.text(message), E.token(self.token)) ), pretty_print=True, xml_declaration=True) response = self.request(xml)