diff --git a/src/bot.py b/src/bot.py index f86477c..6127864 100644 --- a/src/bot.py +++ b/src/bot.py @@ -8,8 +8,6 @@ load_dotenv() bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN")) -# remove previous webhook -bot.remove_webhook() # configure the webhook for the bot bot.set_webhook( diff --git a/src/server.py b/src/server.py index 9cfcf81..6810209 100644 --- a/src/server.py +++ b/src/server.py @@ -1,5 +1,3 @@ -import os - import flask import telebot @@ -28,8 +26,3 @@ def webhook(): return "" else: flask.abort(403) - - -if __name__ == "__main__": - port = int(os.environ.get("PORT", 33507)) - app.run(host="0.0.0.0", port=port) diff --git a/wsgi.py b/wsgi.py index 949b7f1..697300c 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,5 +1,3 @@ -import os - from src.server import app if __name__ == "__main__":