railway configuration

This commit is contained in:
2023-02-16 17:51:23 +03:00
parent c79773830e
commit 8adf2a73e0
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
PLATFORM_DOMAIN=
TELEGRAM_TOKEN=
PROJECT_NAME=
+2 -2
View File
@@ -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")
)
)