From c8ff1a88262c5782029821e2e2659af3c8a75766 Mon Sep 17 00:00:00 2001 From: MKN TG <86054899+MrMKN@users.noreply.github.com> Date: Sun, 13 Nov 2022 19:37:50 +0530 Subject: [PATCH] Update bot.py --- bot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index c48cae74..7fbfdb42 100644 --- a/bot.py +++ b/bot.py @@ -1,10 +1,8 @@ from pyrogram import Client -from config import API_ID, API_HASH, BOT_TOKEN, FORCE_SUB +from config import API_ID, API_HASH, BOT_TOKEN, FORCE_SUB, PORT from aiohttp import web -from plugins import web_server - -PORT = "8080" +from plugins.web_support import web_server class Bot(Client): @@ -38,7 +36,8 @@ async def start(self): bind_address = "0.0.0.0" await web.TCPSite(app, bind_address, PORT).start() print(f"{me.first_name} 𝚂𝚃𝙰𝚁𝚃𝙴𝙳 ⚡️⚡️⚡️") - + + async def stop(self, *args): await super().stop() print("Bot Stopped")