1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix example

This commit is contained in:
FrankWang 2016-07-11 21:29:25 +08:00 committed by GitHub
parent d847cfb9fa
commit 3dcd59c22e

View File

@ -16,8 +16,7 @@ def echo_message(message):
@server.route("/bot", methods=['POST'])
def getMessage():
bot.process_new_messages(
[telebot.types.Update.de_json(request.stream.read().decode("utf-8")).message])
bot.process_new_updates([telebot.types.Update.de_json(request.stream.read().decode("utf-8"))])
return "!", 200
@server.route("/")