from akn.manage.parameter import generate_random_string | |
from config import API_ID, API_HASH | |
from pyrogram import Client | |
def initial_client_bots(bot_token: str, plugins: str = "AllDownloaderBot"): | |
client_name = generate_random_string(12) | |
return Client( | |
"{}".format(client_name), | |
api_id=API_ID, | |
api_hash=API_HASH, | |
bot_token=bot_token, | |
plugins={"root": f"akn.{plugins}"} | |
) |