yukuku / telebot

Telegram Bot starter kit. Very easy to install with Google App Engine.
Apache License 2.0
689 stars 234 forks source link

How i can update getUpdates offset? #26

Closed weiddolo closed 8 years ago

weiddolo commented 9 years ago

The bot crashes when I reach the limit in getUpdates. How i can update offset in each message received?

coriumalpha commented 9 years ago

I think that there is an error in /updates method. Telegram Bot API's is not supporting any call to /getUpdates while a webhook is set.

Then, Telebot cannot parse the result 'cause it doesn't exist.

Calling updates implies calling BASE_URL + 'getUpdates', if getUpdates is dissabled you will get an error caused by the following line: self.response.write(json.dumps(json.load(urllib2.urlopen(BASE_URL + 'getUpdates'))))