Dmitry Beresnev commited on
Commit
92109f8
·
1 Parent(s): 14714e9
Files changed (1) hide show
  1. src/telegram_bot.py +7 -8
src/telegram_bot.py CHANGED
@@ -164,11 +164,10 @@ async def health():
164
  return {"status": "healthy", "bot_token_set": bool(BOT_TOKEN)}
165
 
166
 
167
- if __name__ == "__main__":
168
- logger.info(f"Starting Financial News Bot on port {PORT}")
169
- logger.info(f"Bot token: {BOT_TOKEN[:10]}..." if BOT_TOKEN else "No token set")
170
- logger.info(f"Space ID: {SPACE_ID}")
171
- logger.info(f"Webhook URL will be: https://{SPACE_ID}.hf.space/{BOT_TOKEN[:10]}...")
172
- logger.info("After deployment, visit /set_webhook to configure the webhook")
173
-
174
- uvicorn.run(app, host="0.0.0.0", port=PORT)
 
164
  return {"status": "healthy", "bot_token_set": bool(BOT_TOKEN)}
165
 
166
 
167
+ logger.info(f"Starting Financial News Bot on port {PORT}")
168
+ logger.info(f"Bot token: {BOT_TOKEN[:10]}..." if BOT_TOKEN else "No token set")
169
+ logger.info(f"Space ID: {SPACE_ID}")
170
+ logger.info(f"Webhook URL will be: https://{SPACE_ID}.hf.space/{BOT_TOKEN[:10]}...")
171
+ logger.info("After deployment, visit /set_webhook to configure the webhook")
172
+
173
+ uvicorn.run(app, host="0.0.0.0", port=PORT)