mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #10 from eternnoir/revert-9-master
Revert "...actually implemented the offset in TeleBot#get_update now..."
This commit is contained in:
commit
53c76e75f7
@ -1,12 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import apihelper
|
||||
import json
|
||||
import types
|
||||
import time
|
||||
import threading
|
||||
|
||||
import apihelper
|
||||
import types
|
||||
|
||||
"""
|
||||
Module : telebot
|
||||
"""
|
||||
@ -47,7 +46,7 @@ class TeleBot:
|
||||
return self.update_id_list[-1] if len(self.update_id_list) > 0 else None
|
||||
|
||||
def get_update(self):
|
||||
result = apihelper.get_updates(self.token, offset=self.get_last_update_id())
|
||||
result = apihelper.get_updates(self.token)
|
||||
if result['ok'] is not True:
|
||||
raise Exception('getMe Error.' + json.dumps(result))
|
||||
updates = result['result']
|
||||
|
Loading…
Reference in New Issue
Block a user