Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMKN authored Nov 13, 2022
1 parent 932d26b commit c8ff1a8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bot.py
Original file line number Diff line number Diff line change
@@ -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):

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit c8ff1a8

Please sign in to comment.