mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-10-18 10:42:53 +00:00
railway configuration
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
PLATFORM_DOMAIN=
|
||||
TELEGRAM_TOKEN=
|
||||
PROJECT_NAME=
|
||||
+2
-2
@@ -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")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user