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'])
|
@server.route("/bot", methods=['POST'])
|
||||||
def getMessage():
|
def getMessage():
|
||||||
bot.process_new_messages(
|
bot.process_new_updates([telebot.types.Update.de_json(request.stream.read().decode("utf-8"))])
|
||||||
[telebot.types.Update.de_json(request.stream.read().decode("utf-8")).message])
|
|
||||||
return "!", 200
|
return "!", 200
|
||||||
|
|
||||||
@server.route("/")
|
@server.route("/")
|
||||||
|
Loading…
Reference in New Issue
Block a user