def process_update(self, update):
    self.offset = (max(self.offset, update.get('update_id', 0)) + 1)
    for x in self.update_rules:
        if (('message' in update) and ('text' in update['message']) and x['rule'].match(update['message']['text'])):
            m = x['rule'].match(update['message']['text'])
            x['view_func'](update['message'], *m.groups(), **m.groupdict())
def process_update(self, update):
    self.offset = (max(self.offset, update.get('update_id', 0)) + 1)
    for x in self.update_rules:
        if (('message' in update) and ('text' in update['message']) and x['rule'].match(update['message']['text'])):
            m = x['rule'].match(update['message']['text'])
            x['view_func'](update['message'], *m.groups(), **m.groupdict())