mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update webhook_flask_heroku_echo.py
This commit is contained in:
parent
d84aa796c0
commit
e87907f0b8
@ -17,8 +17,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
|
||||
])
|
||||
[telebot.types.Update.de_json(request.stream.read().decode("utf-8")).message])
|
||||
return "!", 200
|
||||
|
||||
@server.route("/")
|
||||
@ -29,4 +28,4 @@ def webhook():
|
||||
|
||||
server.run(host="0.0.0.0", port=os.environ.get('PORT', 5000))
|
||||
|
||||
server = Flask(__name__)
|
||||
server = Flask(__name__)
|
||||
|
Loading…
Reference in New Issue
Block a user