Example #1
0
 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)
Example #2
0
 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)