[new] use run
instead loop.run_until_complete
from: https://docs.python.org/3/library/asyncio-task.html#running-an-asyncio-program
This commit is contained in:
parent
9220ea503f
commit
471835a619
6
main.py
6
main.py
@ -13,8 +13,8 @@ async def start_bot():
|
|||||||
await user.join_chat("VeezSupportGroup")
|
await user.join_chat("VeezSupportGroup")
|
||||||
await user.join_chat("levinachannel")
|
await user.join_chat("levinachannel")
|
||||||
await idle()
|
await idle()
|
||||||
LOGS.info("[INFO]: BOT & USERBOT STOPPED !!")
|
LOGS.info("[INFO]: BOT & USERBOT CLIENT STOPPED !!")
|
||||||
await bot.stop()
|
await bot.stop()
|
||||||
|
|
||||||
loop = asyncio.get_event_loop()
|
|
||||||
loop.run_until_complete(start_bot())
|
asyncio.run(start_bot())
|
||||||
|
Loading…
Reference in New Issue
Block a user