From 581338060ab58b4f493b6fd5495fc73de8e60013 Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Sun, 15 May 2022 19:51:09 +0300 Subject: [PATCH] Empty commit --- src/bot.py | 4 ++++ 1 file changed, 4 insertions(+) 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(