Updated app.py

This commit is contained in:
Administrator 2022-03-12 20:21:26 +01:00
parent 032268f9b1
commit 0156c3060f

View File

@ -1,10 +1,5 @@
import multiprocessing as mp
import time
from flask import Flask from flask import Flask
from telegram_bot.bot import bot
app = Flask(__name__) app = Flask(__name__)
@ -14,12 +9,4 @@ def hello_world():
if __name__ == '__main__': if __name__ == '__main__':
proc1 = mp.Process(target=app.run, args=()) app.run()
proc1.start()
while True:
try:
bot.polling(none_stop=True)
except Exception as e:
print(f"[EXCEPTION] {e}")
time.sleep(15)