mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-12-04 23:38:45 +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)
|
time.sleep(3)
|
||||||
# configure the webhook for the bot
|
# configure the webhook for the bot
|
||||||
bot.set_webhook(
|
bot.set_webhook(
|
||||||
"https://{}.onrender.com/{}".format(
|
"https://{}.{}/{}".format(
|
||||||
os.getenv("PROJECT_NAME"), os.getenv("TELEGRAM_TOKEN")
|
os.getenv("PROJECT_NAME"),os.getenv("PLATFORM_DOMAIN") ,os.getenv("TELEGRAM_TOKEN")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user