Create main.py

This commit is contained in:
Tofik Denianto 2021-10-30 01:47:52 +07:00 committed by GitHub
parent fe762a606c
commit 42ae531c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
main.py Normal file
View File

@ -0,0 +1,18 @@
import asyncio
from driver.veez import bot, call_py
from pytgcalls import idle
async def mulai_bot():
print("[INFO]: STARTING BOT CLIENT")
await bot.start()
print("[INFO]: STARTING PYTGCALLS CLIENT")
await call_py.start()
await idle()
print("[INFO]: STOPPING BOT")
await bot.stop()
loop = asyncio.get_event_loop()
loop.run_until_complete(mulai_bot())