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