File tree Expand file tree Collapse file tree 1 file changed +22
-11
lines changed
Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change 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 ())
You can’t perform that action at this time.
0 commit comments