From aee925556882b5013e3542cebd8b6e3668c61913 Mon Sep 17 00:00:00 2001 From: Kondra007 Date: Fri, 20 May 2016 17:40:22 +0300 Subject: [PATCH] Changed "Process_new_message" to "Process_new_update" This way all types of queries (Message, Inline query, Callback query) are supported. --- examples/webhook_examples/webhook_cherrypy_echo_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/webhook_examples/webhook_cherrypy_echo_bot.py b/examples/webhook_examples/webhook_cherrypy_echo_bot.py index 05b43a1..83c9a01 100644 --- a/examples/webhook_examples/webhook_cherrypy_echo_bot.py +++ b/examples/webhook_examples/webhook_cherrypy_echo_bot.py @@ -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)