diff --git a/src/bot.py b/src/bot.py index 6127864..91536b6 100644 --- a/src/bot.py +++ b/src/bot.py @@ -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(