mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-12-06 08:08:45 +00:00
Empty commit
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import telebot
|
import telebot
|
||||||
@@ -9,6 +10,9 @@ load_dotenv()
|
|||||||
bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN"))
|
bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN"))
|
||||||
|
|
||||||
|
|
||||||
|
bot.remove_webhook()
|
||||||
|
|
||||||
|
time.sleep(0.1)
|
||||||
# configure the webhook for the bot
|
# configure the webhook for the bot
|
||||||
bot.set_webhook(
|
bot.set_webhook(
|
||||||
"https://{}.herokuapp.com/{}".format(
|
"https://{}.herokuapp.com/{}".format(
|
||||||
|
|||||||
Reference in New Issue
Block a user