Skip to content

Commit e87907f

Browse files
author
Dmitry
committed
Update webhook_flask_heroku_echo.py
1 parent d84aa79 commit e87907f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/webhook_examples/webhook_flask_heroku_echo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def echo_message(message):
1717
@server.route("/bot", methods=['POST'])
1818
def getMessage():
1919
bot.process_new_messages(
20-
[telebot.types.Update.de_json(request.stream.read().decode("utf-8")).message
21-
])
20+
[telebot.types.Update.de_json(request.stream.read().decode("utf-8")).message])
2221
return "!", 200
2322

2423
@server.route("/")
@@ -29,4 +28,4 @@ def webhook():
2928

3029
server.run(host="0.0.0.0", port=os.environ.get('PORT', 5000))
3130

32-
server = Flask(__name__)
31+
server = Flask(__name__)

0 commit comments

Comments
 (0)