mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix example
This commit is contained in:
parent
d847cfb9fa
commit
3dcd59c22e
@ -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("/")
|
||||
|
Loading…
Reference in New Issue
Block a user