def process_updates(self, updates):
    if (updates.get('ok', False) is True):
        for msg in updates['result']:
            self.process_update(msg)
def process_updates(self, updates):
    if (updates.get('ok', False) is True):
        for msg in updates['result']:
            self.process_update(msg)