Update app.py
Browse files
app.py
CHANGED
@@ -496,7 +496,6 @@ async def update_commands():
|
|
496 |
await setBotCommands()
|
497 |
return jsonify({'message': 'Commands updated successfully!'})
|
498 |
|
499 |
-
|
500 |
@app.route('/', methods=['POST'])
|
501 |
async def handle_webhook():
|
502 |
try:
|
@@ -509,10 +508,9 @@ async def handle_webhook():
|
|
509 |
traceback.print_exc()
|
510 |
return jsonify({'status': 'error', 'message': str(e)}), 400
|
511 |
|
512 |
-
|
513 |
@app.route('/health', methods=['GET'])
|
514 |
def health_check():
|
515 |
return 'OK'
|
516 |
|
517 |
if __name__ == '__main__':
|
518 |
-
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
|
|
496 |
await setBotCommands()
|
497 |
return jsonify({'message': 'Commands updated successfully!'})
|
498 |
|
|
|
499 |
@app.route('/', methods=['POST'])
|
500 |
async def handle_webhook():
|
501 |
try:
|
|
|
508 |
traceback.print_exc()
|
509 |
return jsonify({'status': 'error', 'message': str(e)}), 400
|
510 |
|
|
|
511 |
@app.route('/health', methods=['GET'])
|
512 |
def health_check():
|
513 |
return 'OK'
|
514 |
|
515 |
if __name__ == '__main__':
|
516 |
+
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|