Changed "Process_new_message" to "Process_new_update"

This way all types of queries (Message, Inline query, Callback query) are supported.
This commit is contained in:
Kondra007 2016-05-20 17:40:22 +03:00
parent fbaf88c237
commit aee9255568
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class WebhookServer(object):
length = int(cherrypy.request.headers['content-length'])
json_string = cherrypy.request.body.read(length).decode("utf-8")
update = telebot.types.Update.de_json(json_string)
bot.process_new_messages([update.message])
bot.process_new_updates([update])
return ''
else:
raise cherrypy.HTTPError(403)