From 79b2de905c94476effd31ec90aad77bb531bd9c4 Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Sun, 15 May 2022 19:45:16 +0300 Subject: [PATCH] Empty commit --- src/bot.py | 2 -- src/server.py | 7 ------- wsgi.py | 2 -- 3 files changed, 11 deletions(-) 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__":