From 42ae531c0bb8b477140f08b8dcd33c87fc32ecde Mon Sep 17 00:00:00 2001 From: Tofik Denianto <77754555+tofikdn@users.noreply.github.com> Date: Sat, 30 Oct 2021 01:47:52 +0700 Subject: [PATCH] Create main.py --- main.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..02df684 --- /dev/null +++ b/main.py @@ -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())