Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changed "Process_new_message" to "Process_new_update"
This way all types of queries (Message, Inline query, Callback query) are supported.
  • Loading branch information
MasterGroosha committed May 20, 2016
commit aee925556882b5013e3542cebd8b6e3668c61913
2 changes: 1 addition & 1 deletion examples/webhook_examples/webhook_cherrypy_echo_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def index(self):
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)
Expand Down