Dmitry Beresnev commited on
Commit
c391088
·
1 Parent(s): 7debc6c

fix bot for local env

Browse files
Files changed (1) hide show
  1. src/telegram_bot.py +2 -2
src/telegram_bot.py CHANGED
@@ -174,5 +174,5 @@ if __name__ == "__main__":
174
  logger.info(f"Webhook URL will be: https://{SPACE_ID}.hf.space/{BOT_TOKEN[:10]}...")
175
  logger.info("After deployment, visit /set_webhook to configure the webhook")
176
 
177
- #uvicorn.run(app, host="127.0.0.1", port=PORT)
178
- application.run_polling()
 
174
  logger.info(f"Webhook URL will be: https://{SPACE_ID}.hf.space/{BOT_TOKEN[:10]}...")
175
  logger.info("After deployment, visit /set_webhook to configure the webhook")
176
 
177
+ uvicorn.run(app, host="0.0.0.0", port=PORT)
178
+ #application.run_polling()