diff --git a/.env.example b/.env.example index e69de29..6acf400 100644 --- a/.env.example +++ b/.env.example @@ -0,0 +1,3 @@ +PLATFORM_DOMAIN= +TELEGRAM_TOKEN= +PROJECT_NAME= \ No newline at end of file diff --git a/src/bot.py b/src/bot.py index 1a093f1..b2e8b21 100644 --- a/src/bot.py +++ b/src/bot.py @@ -15,8 +15,8 @@ bot.remove_webhook() time.sleep(3) # configure the webhook for the bot bot.set_webhook( - "https://{}.onrender.com/{}".format( - os.getenv("PROJECT_NAME"), os.getenv("TELEGRAM_TOKEN") + "https://{}.{}/{}".format( + os.getenv("PROJECT_NAME"),os.getenv("PLATFORM_DOMAIN") ,os.getenv("TELEGRAM_TOKEN") ) )