Skip to content

Commit c772dd3

Browse files
authored
LITTLE
1 parent 63c7684 commit c772dd3

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

main.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
import os
2-
from pyrogram import Client, idle
3-
from pytgcalls import PyTgCalls
4-
from pytgcalls import idle as pyidle
5-
from config import bot, call_py
1+
import asyncio
2+
from pytgcalls import idle
3+
from config import call_py, bot
64

7-
print("The Userbot Started")
8-
bot.start()
95

10-
print("VC Music Client Started")
11-
call_py.start()
6+
async def main():
7+
print("STARTING UBOT CLIENT")
8+
await bot.start()
9+
print("STARTING PYTGCALLS CLIENT")
10+
await call_py.start()
11+
print(
12+
"""
13+
------------------------
14+
| Rio Music Actived! |
15+
------------------------
16+
"""
17+
)
18+
await idle()
19+
await pidle()
20+
print("STOPPING USERBOT")
21+
await bot.stop()
1222

13-
pyidle()
14-
idle()
23+
24+
loop = asyncio.get_event_loop()
25+
loop.run_until_complete(main())

0 commit comments

Comments
 (0)