We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbaf88c + aee9255 commit 747f142Copy full SHA for 747f142
examples/webhook_examples/webhook_cherrypy_echo_bot.py
@@ -46,7 +46,7 @@ def index(self):
46
length = int(cherrypy.request.headers['content-length'])
47
json_string = cherrypy.request.body.read(length).decode("utf-8")
48
update = telebot.types.Update.de_json(json_string)
49
- bot.process_new_messages([update.message])
+ bot.process_new_updates([update])
50
return ''
51
else:
52
raise cherrypy.HTTPError(403)
0 commit comments