-
Notifications
You must be signed in to change notification settings - Fork 834
Expand file tree
/
Copy pathmain.py
More file actions
39 lines (32 loc) · 653 Bytes
/
main.py
File metadata and controls
39 lines (32 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import asyncio
from bot import Bot, web_app
from pyrogram import compose
from config import *
async def main():
app = []
# Create bot instance using config.py values
app.append(
Bot(
SESSION,
WORKERS,
DB_CHANNEL,
FSUBS,
TOKEN,
ADMINS,
MESSAGES,
AUTO_DEL,
DB_URI,
DB_NAME,
API_ID,
API_HASH,
PROTECT,
DISABLE_BTN
)
)
await compose(app)
async def runner():
await asyncio.gather(
main(),
web_app()
)
asyncio.run(runner())