1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Probably fixed #2

This commit is contained in:
Steffo 2017-03-28 22:48:53 +02:00 committed by GitHub
parent 90f8add391
commit d742c26881

View file

@ -63,7 +63,7 @@ class Bot:
self.updates.append(Update(update)) self.updates.append(Update(update))
except NotImplementedError: except NotImplementedError:
pass pass
if len(data) > 0: if len(self.updates) > 0:
self.offset = self.updates[-1].update_id + 1 self.offset = self.updates[-1].update_id + 1
async def parse_update(self, update): async def parse_update(self, update):