From 0156c3060f109cfd9cdb4e2e586aa83ee6641825 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Sat, 12 Mar 2022 20:21:26 +0100 Subject: [PATCH] Updated app.py --- webservice/app.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/webservice/app.py b/webservice/app.py index e33f017..4b059ec 100644 --- a/webservice/app.py +++ b/webservice/app.py @@ -1,10 +1,5 @@ -import multiprocessing as mp -import time - from flask import Flask -from telegram_bot.bot import bot - app = Flask(__name__) @@ -14,12 +9,4 @@ def hello_world(): if __name__ == '__main__': - proc1 = mp.Process(target=app.run, args=()) - proc1.start() - - while True: - try: - bot.polling(none_stop=True) - except Exception as e: - print(f"[EXCEPTION] {e}") - time.sleep(15) + app.run()