Spaces:
Runtime error
Runtime error
Dmitry Beresnev commited on
Commit ·
92109f8
1
Parent(s): 14714e9
fix bot
Browse files163 unmodified lines164165166167168169170171172173174163 unmodified linesreturn {"status": "healthy", "bot_token_set": bool(BOT_TOKEN)}if __name__ == "__main__":logger.info(f"Starting Financial News Bot on port {PORT}")logger.info(f"Bot token: {BOT_TOKEN[:10]}..." if BOT_TOKEN else "No token set")logger.info(f"Space ID: {SPACE_ID}")logger.info(f"Webhook URL will be: https://{SPACE_ID}.hf.space/{BOT_TOKEN[:10]}...")logger.info("After deployment, visit /set_webhook to configure the webhook")uvicorn.run(app, host="0.0.0.0", port=PORT)163 unmodified lines164165166167168169170171172173163 unmodified linesreturn {"status": "healthy", "bot_token_set": bool(BOT_TOKEN)}logger.info(f"Starting Financial News Bot on port {PORT}")logger.info(f"Bot token: {BOT_TOKEN[:10]}..." if BOT_TOKEN else "No token set")logger.info(f"Space ID: {SPACE_ID}")logger.info(f"Webhook URL will be: https://{SPACE_ID}.hf.space/{BOT_TOKEN[:10]}...")logger.info("After deployment, visit /set_webhook to configure the webhook")uvicorn.run(app, host="0.0.0.0", port=PORT)
src/telegram_bot.py+7-8