From 55ca1742c578f230632308ca42fcb9441f42c10e Mon Sep 17 00:00:00 2001 From: spraj001 <85396007+spraj001@users.noreply.github.com> Date: Sat, 5 Jun 2021 17:15:57 +0530 Subject: [PATCH] Create utubebot --- utubebot | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utubebot diff --git a/utubebot b/utubebot new file mode 100644 index 0000000..3cb62a6 --- /dev/null +++ b/utubebot @@ -0,0 +1,20 @@ +from pyrogram import Client + +from .config import Config + + +class UtubeBot(Client): + def __init__(self): + super().__init__( + session_name = Config.SESSION_NAME, + bot_token = Config.BOT_TOKEN, + api_id = Config.API_ID, + api_hash = Config.API_HASH, + plugins = dict( + root="bot.plugins" + ), + workers = 100 + ) + self.DOWNLOAD_WORKERS = 100 + self.counter = 0 + self.download_controller = {}