video-stream/main.py

20 lines
413 B
Python
Raw Normal View History

2021-10-29 18:47:52 +00:00
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()
2021-10-29 19:49:37 +00:00
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
2021-10-29 18:47:52 +00:00
loop.run_until_complete(mulai_bot())