mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update __init__.py
This commit is contained in:
parent
010df3ed71
commit
78c2be4bd8
@ -105,6 +105,7 @@ class TeleBot:
|
||||
"""
|
||||
updates = apihelper.get_updates(self.token, offset=(self.last_update_id + 1), timeout=20)
|
||||
new_messages = []
|
||||
if updates:
|
||||
self.last_update_id = updates[-1]['update_id']
|
||||
for update in updates:
|
||||
msg = types.Message.de_json(update['message'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user