Skip to content

Commit 747f142

Browse files
committed
Merge pull request eternnoir#166 from Kondra007/patch-1
Changed "Process_new_message" to "Process_new_update"
2 parents fbaf88c + aee9255 commit 747f142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/webhook_examples/webhook_cherrypy_echo_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def index(self):
4646
length = int(cherrypy.request.headers['content-length'])
4747
json_string = cherrypy.request.body.read(length).decode("utf-8")
4848
update = telebot.types.Update.de_json(json_string)
49-
bot.process_new_messages([update.message])
49+
bot.process_new_updates([update])
5050
return ''
5151
else:
5252
raise cherrypy.HTTPError(403)

0 commit comments

Comments
 (0)