def process_update(self, update_json): message = message_from_json(update_json["message"]) self.process_messages([message])
def get_messages(self, results): return [message_from_json(m["message"]) for m in results if "message" in m]