video-stream/main.py

17 lines
404 B
Python
Raw Normal View History

2021-10-29 18:47:52 +00:00
import asyncio
from pytgcalls import idle
2021-11-02 14:32:50 +00:00
from driver.veez import call_py, bot
2021-11-02 08:36:57 +00:00
2022-01-31 10:11:01 +00:00
2021-12-16 07:08:16 +00:00
async def start_bot():
2021-10-29 18:47:52 +00:00
await bot.start()
2022-01-15 14:05:09 +00:00
print("[INFO]: BOT & UBOT CLIENT STARTED !!")
2021-10-29 18:47:52 +00:00
await call_py.start()
2022-01-31 10:11:01 +00:00
print("[INFO]: PY-TGCALLS CLIENT STARTED !!")
2021-10-29 18:47:52 +00:00
await idle()
2021-12-16 07:08:16 +00:00
print("[INFO]: STOPPING BOT & USERBOT")
2021-10-29 18:47:52 +00:00
await bot.stop()
2021-10-29 20:19:54 +00:00
loop = asyncio.get_event_loop()
2021-12-16 07:08:16 +00:00
loop.run_until_complete(start_bot())