2021-10-29 18:47:52 +00:00
|
|
|
import asyncio
|
2022-02-25 03:57:12 +00:00
|
|
|
|
|
|
|
from program import LOGS
|
2021-10-29 18:47:52 +00:00
|
|
|
from pytgcalls import idle
|
2022-02-07 16:53:45 +00:00
|
|
|
from driver.core import calls, bot, user
|
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-02-25 03:57:12 +00:00
|
|
|
LOGS.info("[INFO]: BOT & USERBOT CLIENT STARTED !!")
|
2022-02-07 16:53:45 +00:00
|
|
|
await calls.start()
|
2022-02-25 03:57:12 +00:00
|
|
|
LOGS.info("[INFO]: PY-TGCALLS CLIENT STARTED !!")
|
2022-01-31 21:50:06 +00:00
|
|
|
await user.join_chat("VeezSupportGroup")
|
|
|
|
await user.join_chat("levinachannel")
|
2021-10-29 18:47:52 +00:00
|
|
|
await idle()
|
2022-02-25 03:57:12 +00:00
|
|
|
LOGS.info("[INFO]: BOT & USERBOT STOPPED !!")
|
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())
|