From 843ef7e5056eb0c0267277b9a737e538404dca39 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Tue, 2 Nov 2021 15:36:57 +0700 Subject: [PATCH] something --- main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/main.py b/main.py index 02df684..afe5447 100644 --- a/main.py +++ b/main.py @@ -1,14 +1,25 @@ import asyncio +from program import BOT_ID, USERBOT_ID from driver.veez import bot, call_py from pytgcalls import idle +def all_info(bot, call_py): + global BOT_ID, USERBOT_ID + getme = bot.get_me() + getme1 = call_py.get_me() + BOT_ID = getme.id + USERBOT_ID = getme1.id + + async def mulai_bot(): print("[INFO]: STARTING BOT CLIENT") await bot.start() print("[INFO]: STARTING PYTGCALLS CLIENT") await call_py.start() + print("[INFO]: GENERATING CLIENT PROFILE") + all_info(bot, call_py) await idle() print("[INFO]: STOPPING BOT") await bot.stop()