Exemplo n.º 1
0
class Loilacaztion:
    PROCESSING = get_config("STRINGS_PROCESSING", "processing ...")

    CLEARED_THUMBNAIL = get_config("STRINGS_CLEARED_THUMBNAIL",
                                   "✅ Custom thumbnail cleared succesfully.")
    HELP_SAVE_THUMBNAIL = get_config(
        "STRINGS_HELP_SAVE_THUMBNAIL",
        "Reply to a photo to save custom thumbnail")
    SAVED_THUMBNAIL = get_config(
        "STRINGS_SAVED_THUMBNAIL",
        ("Custom video / file thumbnail saved. "
         "This image will be used in the upload, till /clearthumbnail."))

    HELP_MESSAGE = get_config(
        "STRINGS_HELP_MESSAGE",
        "please read the <a href='https://t.me/c/1434259219/99'>Pinned Message</a>"
    )
    WRONG_MESSAGE = get_config("STRINGS_WRONG_MESSAGE",
                               "current CHAT ID: <code>{CHAT_ID}</code>")

    NO_TOR_STATUS = get_config("STRINGS_NO_TOR_STATUS",
                               "🤷‍♂️ No Active, Queued or Paused TORRENTs")
    TOR_CANCELLED = get_config("STRINGS_TOR_CANCELLED", "Leech Cancelled")
    TOR_CANCEL_FAILED = get_config("STRINGS_TOR_CANCEL_FAILED",
                                   "<i>FAILED</i>\n\n#error")
Exemplo n.º 2
0
class Loilacaztion:
    PROCESSING = get_config(
        "STRINGS_PROCESSING",
        "<b>processing ...</b>\n\nplease wait"
    )

    CLEARED_THUMBNAIL = get_config(
        "STRINGS_CLEARED_THUMBNAIL",
        "✔️ Custom thumbnail cleared succesfully."
    )
    HELP_SAVE_THUMBNAIL = get_config(
        "STRINGS_HELP_SAVE_THUMBNAIL",
        "Reply to a photo to save custom thumbnail"
    )
    SAVED_THUMBNAIL = get_config(
        "STRINGS_SAVED_THUMBNAIL",
        (
            "Custom video / file thumbnail saved. "
            "This image will be used in the upload, till /clearthumbnail@LuciferbyAI_bot."
        )
    )

    HELP_MESSAGE = get_config(
        "STRINGS_HELP_MESSAGE",
        "please read the <a href='https://t.me/TorrentleechbyAI/277'>Pinned Message</a>\n or use /help"
    )
    WRONG_MESSAGE = get_config(
        "STRINGS_WRONG_MESSAGE",
        "current CHAT ID: <code>{CHAT_ID}</code>"
    )

    NO_TOR_STATUS = get_config(
        "STRINGS_NO_TOR_STATUS",
        "🤷‍♂️ No Active, Queued or Paused TORRENTs \n\nI'm free now🥴"
    )
    TOR_CANCELLED = get_config(
        "STRINGS_TOR_CANCELLED",
        "Leech Cancelled\n😓"
    )
    TOR_CANCEL_FAILED = get_config(
        "STRINGS_TOR_CANCEL_FAILED",
        "<i>FAILED</i>\n\n😱\n\n#error"
    )
Exemplo n.º 3
0
class Loilacaztion:
    PROCESSING = get_config("STRINGS_PROCESSING", "processing ...")

    CLEARED_THUMBNAIL = get_config("STRINGS_CLEARED_THUMBNAIL",
                                   "⛔ Custom Thumbnail Cleared Succesfully.")
    HELP_SAVE_THUMBNAIL = get_config(
        "STRINGS_HELP_SAVE_THUMBNAIL",
        "Reply To a Photo To Save Custom Thumbnail")
    SAVED_THUMBNAIL = get_config("STRINGS_SAVED_THUMBNAIL",
                                 ("✅ Custom Video&File Thumbnail Saved."
                                  "This Image Will Be Used in The Upload"))

    HELP_MESSAGE = get_config(
        "STRINGS_HELP_MESSAGE",
        "💬 Please Read The <a href='https://t.me/DamienHelp/5'>Pinned Message</a>"
    )
    WRONG_MESSAGE = get_config("STRINGS_WRONG_MESSAGE",
                               "Current CHAT ID: <code>{CHAT_ID}</code>")

    NO_TOR_STATUS = get_config("STRINGS_NO_TOR_STATUS",
                               "🤷‍♂️ No Active, Queued or Paused TORRENTs")
    TOR_CANCELLED = get_config("STRINGS_TOR_CANCELLED", "Download Cancelled")
    TOR_CANCEL_FAILED = get_config("STRINGS_TOR_CANCEL_FAILED",
                                   "<i>FAILED</i>\n\n#error")
Exemplo n.º 4
0
class Commandi:
    LEECH = get_config("COMMANDI_LEECH", "leech@speedlestbot")
    PURGE = get_config("COMMANDI_PURGE", "purge@speedlestbot")
    YTDL = get_config("COMMANDI_YTDL", "ytdl@speedlestbot")
    STATUS = get_config("COMMANDI_STATUS", "status@speedlestbot")
    CANCEL = get_config("COMMANDI_CANCEL", "cancel")
    EXEC = get_config("COMMANDI_EXEC", "exec@speedlestbot")
    EVAL = get_config("COMMANDI_EVAL", "eval@speedlestbot")
    RENAME = get_config("COMMANDI_RENAME", "rename@speedlestbot")
    UPLOAD = get_config("COMMANDI_UPLOAD", "upload@speedlestbot")
    HELP = get_config("COMMANDI_HELP", "help")
    SAVETHUMBNAIL = get_config("COMMANDI_SAVETHUMBNAIL",
                               "savethumbnail@speedlestbot")
    CLEARTHUMBNAIL = get_config("COMMANDI_CLEARTHUMBNAIL",
                                "clearthumbnail@speedlestbot")
    GET_RCLONE_CONF_URI = get_config("COMMANDI_GET_RCLONE_CONF_URI",
                                     "getrcloneconfuri")
    UPLOAD_LOG_FILE = get_config("COMMANDI_UPLOAD_LOG_FILE", "log")
    GET_RCLONE_CONF_URI = get_config("COMMANDI_GET_RCLONE_CONF_URI",
                                     "getrcloneconfuri")
    UPLOAD_LOG_FILE = get_config("COMMANDI_UPLOAD_LOG_FILE", "log")
Exemplo n.º 5
0
class Config(object):
    # get a token from @BotFather
    TG_BOT_TOKEN = get_config("TG_BOT_TOKEN", "")
    # The Telegram API things
    APP_ID = int(get_config("APP_ID", 12345))
    API_HASH = get_config("API_HASH")
    # Get these values from my.telegram.org
    # array to store the channel ID who are authorized to use the bot
    AUTH_CHANNEL = set(int(x) for x in get_config("AUTH_CHANNEL", "").split())
    # the download location, where the HTTP Server runs
    DOWNLOAD_LOCATION = get_config("DOWNLOAD_LOCATION", "./DOWNLOADS")
    # Telegram maximum file upload size
    MAX_FILE_SIZE = int(get_config("MAX_FILE_SIZE", 50000000))
    TG_MAX_FILE_SIZE = int(get_config("TG_MAX_FILE_SIZE", 2097152000))
    FREE_USER_MAX_FILE_SIZE = int(
        get_config("FREE_USER_MAX_FILE_SIZE", 50000000))
    # chunk size that should be used with requests
    CHUNK_SIZE = int(get_config("CHUNK_SIZE", 128))
    # default thumbnail to be used in the videos
    DEF_THUMB_NAIL_VID_S = get_config(
        "DEF_THUMB_NAIL_VID_S",
        "https://telegra.ph/file/8b973b270f4f380a427b1.png")
    # maximum message length in Telegram
    MAX_MESSAGE_LENGTH = int(get_config("MAX_MESSAGE_LENGTH", 4096))
    # set timeout for subprocess
    PROCESS_MAX_TIMEOUT = int(get_config("PROCESS_MAX_TIMEOUT", 3600))
    #
    ARIA_TWO_STARTED_PORT = int(get_config("ARIA_TWO_STARTED_PORT", 6800))
    EDIT_SLEEP_TIME_OUT = int(get_config("EDIT_SLEEP_TIME_OUT", 1))
    MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START = int(
        get_config("MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START", 600))
    MAX_TG_SPLIT_FILE_SIZE = int(
        get_config("MAX_TG_SPLIT_FILE_SIZE", 1072864000))
    # add config vars for the display progress
    FINISHED_PROGRESS_STR = get_config("FINISHED_PROGRESS_STR", "█")
    UN_FINISHED_PROGRESS_STR = get_config("UN_FINISHED_PROGRESS_STR", "░")
    # add offensive API
    TG_OFFENSIVE_API = get_config("TG_OFFENSIVE_API", None)
    # URL for the rclone configuration
    R_CLONE_CONF_URI = get_config("R_CLONE_CONF_URI", None)
    # because, https://t.me/c/1494623325/5603
    SHOULD_USE_BUTTONS = get_config("SHOULD_USE_BUTTONS", False)
Exemplo n.º 6
0
class Config:
    # get a token from @BotFather
    TG_BOT_TOKEN = get_config("TG_BOT_TOKEN", should_prompt=True)
    # The Telegram API things
    APP_ID = int(get_config("APP_ID", should_prompt=True))
    API_HASH = get_config("API_HASH", should_prompt=True)
    # Get these values from my.telegram.org
    # array to store the channel ID who are authorized to use the bot
    AUTH_CHANNEL = {
        int(x)
        for x in get_config("AUTH_CHANNEL", should_prompt=True).split()
    }

    AUTH_CHANNEL = list(AUTH_CHANNEL)
    # the download location, where the HTTP Server runs
    DOWNLOAD_LOCATION = get_config("DOWNLOAD_LOCATION", "./DOWNLOADS")
    # Telegram maximum file upload size
    MAX_FILE_SIZE = int(get_config("MAX_FILE_SIZE", 50000000))
    TG_MAX_FILE_SIZE = int(get_config("TG_MAX_FILE_SIZE", 2097152000))
    FREE_USER_MAX_FILE_SIZE = int(
        get_config("FREE_USER_MAX_FILE_SIZE", 50000000))
    # chunk size that should be used with requests
    CHUNK_SIZE = int(get_config("CHUNK_SIZE", 128))
    # default thumbnail to be used in the videos
    DEF_THUMB_NAIL_VID_S = get_config(
        "DEF_THUMB_NAIL_VID_S",
        "https://telegra.ph/file/8b973b270f4f380a427b1.png")
    # maximum message length in Telegram
    MAX_MESSAGE_LENGTH = int(get_config("MAX_MESSAGE_LENGTH", 4096))
    # set timeout for subprocess
    PROCESS_MAX_TIMEOUT = int(get_config("PROCESS_MAX_TIMEOUT", 3600))
    #
    ARIA_TWO_STARTED_PORT = int(get_config("ARIA_TWO_STARTED_PORT", 6800))
    EDIT_SLEEP_TIME_OUT = int(get_config("EDIT_SLEEP_TIME_OUT", 1))
    MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START = int(
        get_config("MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START", 600))
    MAX_TG_SPLIT_FILE_SIZE = int(
        get_config("MAX_TG_SPLIT_FILE_SIZE", 1900000000))
    # add config vars for the display progress
    FINISHED_PROGRESS_STR = get_config("FINISHED_PROGRESS_STR", "█")
    UN_FINISHED_PROGRESS_STR = get_config("UN_FINISHED_PROGRESS_STR", "░")
    # add offensive API
    TG_OFFENSIVE_API = get_config("TG_OFFENSIVE_API", None)
    # URL for the rclone configuration
    R_CLONE_CONF_URI = get_config("R_CLONE_CONF_URI", None)
    # Destination folder for the rclone
    R_CLONE_DEST = get_config("R_CLONE_DEST", "/PublicLeech")
    # because, https://t.me/c/1494623325/5603
    SHOULD_USE_BUTTONS = get_config("SHOULD_USE_BUTTONS", False)
    #
    LOG_FILE_ZZGEVC = get_config("LOG_FILE_ZZGEVC", "PublicLeech.log")
    #
    SP_LIT_ALGO_RITH_M = get_config("SP_LIT_ALGO_RITH_M", "hjs")
    #
    DIS_ABLE_ST_GFC_COMMAND_I = get_config("DIS_ABLE_ST_GFC_COMMAND_I", False)
    # array to store the users who will have control (permissions)
    # in the bot
    SUDO_USERS = {
        int(x)
        for x in get_config("SUDO_USERS", should_prompt=True).split()
    }

    SUDO_USERS = list(SUDO_USERS)
Exemplo n.º 7
0
class Config:
    # get a token from @BotFather
    TG_BOT_TOKEN = "1473788607:AAHlSlT3KV-3QKUbtSWzaoAZQaadwA09QsI"
    APP_ID = 2026775
    API_HASH = 08c81dcff42883b0a106a3c340a4d5f5
    AUTH_CHANNEL = -1001214813572
    DOWNLOAD_LOCATION = "./DOWNLOADS"
    # Telegram maximum file upload size
    MAX_FILE_SIZE = int(get_config("MAX_FILE_SIZE", 50000000))
    TG_MAX_FILE_SIZE = int(get_config("TG_MAX_FILE_SIZE", 2097152000))
    FREE_USER_MAX_FILE_SIZE = int(
        get_config("FREE_USER_MAX_FILE_SIZE", 50000000)
    )
    # chunk size that should be used with requests
    CHUNK_SIZE = int(get_config("CHUNK_SIZE", 128))
    # default thumbnail to be used in the videos
    DEF_THUMB_NAIL_VID_S = get_config(
        "DEF_THUMB_NAIL_VID_S",
        "https://telegra.ph/file/8b973b270f4f380a427b1.png"
    )
    # maximum message length in Telegram
    MAX_MESSAGE_LENGTH = int(get_config(
        "MAX_MESSAGE_LENGTH",
        4096
    ))
    # set timeout for subprocess
    PROCESS_MAX_TIMEOUT = int(get_config(
        "PROCESS_MAX_TIMEOUT",
        3600
    ))
    #
    ARIA_TWO_STARTED_PORT = int(get_config(
        "ARIA_TWO_STARTED_PORT",
        6800
    ))
    EDIT_SLEEP_TIME_OUT = int(get_config(
        "EDIT_SLEEP_TIME_OUT",
        1
    ))
    MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START = int(get_config(
        "MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START",
        600
    ))
    MAX_TG_SPLIT_FILE_SIZE = int(get_config(
        "MAX_TG_SPLIT_FILE_SIZE",
        1900000000
    ))
    # add config vars for the display progress
    FINISHED_PROGRESS_STR = get_config("FINISHED_PROGRESS_STR", "█")
    UN_FINISHED_PROGRESS_STR = get_config("UN_FINISHED_PROGRESS_STR", "░")
    # add offensive API
    TG_OFFENSIVE_API = get_config("TG_OFFENSIVE_API", None)
    # URL for the rclone configuration
    R_CLONE_CONF_URI = get_config("R_CLONE_CONF_URI", None)
    # Destination folder for the rclone
    R_CLONE_DEST = get_config("R_CLONE_DEST", "/PublicLeech")
    # because, https://t.me/c/1494623325/5603
    SHOULD_USE_BUTTONS = get_config("SHOULD_USE_BUTTONS", False)
    #
    LOG_FILE_ZZGEVC = get_config("LOG_FILE_ZZGEVC", "PublicLeech.log")
    #
    SP_LIT_ALGO_RITH_M = get_config(
        "SP_LIT_ALGO_RITH_M",
        "hjs"
    )
    #
    DIS_ABLE_ST_GFC_COMMAND_I = get_config(
        "DIS_ABLE_ST_GFC_COMMAND_I",
        False
    )
    # array to store the users who will have control (permissions)
    # in the bot
    SUDO_USERS = set(
        int(x) for x in get_config(
            "SUDO_USERS",
            should_prompt=True
        ).split()
    )
Exemplo n.º 8
0
class Config:
    # get a token from @BotFather
    TG_BOT_TOKEN = get_config("TG_BOT_TOKEN", 1456031638:AAEHjOeROrmCeF0pKK0gt6XHPnNNmtLFePU should_prompt=True)
    # The Telegram API things
    APP_ID = int(get_config("APP_ID", 1366324 should_prompt=True))
    API_HASH = get_config("API_HASH", 0d0274833b354d9223ca60b3e2f1e7c8 should_prompt=True)
    # Get these values from my.telegram.org
    # array to store the channel ID who are authorized to use the bot
    AUTH_CHANNEL = set(
        int(x) for x in get_config(
            "AUTH_CHANNEL", -1001418321537
            should_prompt=True
        ).split()
    )
    # the download location, where the HTTP Server runs
    DOWNLOAD_LOCATION = get_config("DOWNLOAD_LOCATION", "./DOWNLOADS")
    # Telegram maximum file upload size
    MAX_FILE_SIZE = int(get_config("MAX_FILE_SIZE", 50000000))
    TG_MAX_FILE_SIZE = int(get_config("TG_MAX_FILE_SIZE", 2097152000))
    FREE_USER_MAX_FILE_SIZE = int(
        get_config("FREE_USER_MAX_FILE_SIZE", 50000000)
    )
    # chunk size that should be used with requests
    CHUNK_SIZE = int(get_config("CHUNK_SIZE", 128))
    # default thumbnail to be used in the videos
    DEF_THUMB_NAIL_VID_S = get_config(
        "DEF_THUMB_NAIL_VID_S",
        "https://telegra.ph/file/c20505878345a9b95e313.jpg"
    )
    # maximum message length in Telegram
    MAX_MESSAGE_LENGTH = int(get_config(
Exemplo n.º 9
0
class Commandi:
    LEECH = get_config("COMMANDI_LEECH", "Dl@DamienUserBot")
    PURGE = get_config("COMMANDI_PURGE", "purge@DamienUserBot")
    YTDL = get_config("COMMANDI_YTDL", "ytdl@DamienUserBot")
    STATUS = get_config("COMMANDI_STATUS", "status@DamienUserBot")
    CANCEL = get_config("COMMANDI_CANCEL", "cancel")
    EXEC = get_config("COMMANDI_EXEC", "exec")
    RENAME = get_config("COMMANDI_RENAME", "rename")
    UPLOAD = get_config("COMMANDI_UPLOAD", "upload")
    HELP = get_config("COMMANDI_HELP", "help@DamienUserBot")
    SAVETHUMBNAIL = get_config("COMMANDI_SAVETHUMBNAIL", "save@DamienUserBot")
    CLEARTHUMBNAIL = get_config("COMMANDI_CLEARTHUMBNAIL",
                                "clear@DamienUserBot")
    GET_RCLONE_CONF_URI = get_config("COMMANDI_GET_RCLONE_CONF_URI",
                                     "getrcloneconfuri")
    UPLOAD_LOG_FILE = get_config("COMMANDI_UPLOAD_LOG_FILE",
                                 "log@DamienUserBot")
Exemplo n.º 10
0
class Config:
    # get a token from @BotFather
    TG_BOT_TOKEN = get_config("1204748326:AAECcylWTN9IU1FYH9piozBzdM4EigqB1J0",
                              should_prompt=True)
    # The Telegram API things
    APP_ID = int(get_config("924859", should_prompt=True))
    API_HASH = get_config("a4c9a18cf4d8cb24062ff6916597f832",
                          should_prompt=True)
    # Get these values from my.telegram.org
    # array to store the channel ID who are authorized to use the bot
    AUTH_CHANNEL = set(
        int(x)
        for x in get_config("-1001199115006", should_prompt=True).split())
    # the download location, where the HTTP Server runs
    DOWNLOAD_LOCATION = get_config("DOWNLOAD_LOCATION", "./DOWNLOADS")
    # Telegram maximum file upload size
    MAX_FILE_SIZE = int(get_config("MAX_FILE_SIZE", 50000000))
    TG_MAX_FILE_SIZE = int(get_config("TG_MAX_FILE_SIZE", 2097152000))
    FREE_USER_MAX_FILE_SIZE = int(
        get_config("FREE_USER_MAX_FILE_SIZE", 50000000))
    # chunk size that should be used with requests
    CHUNK_SIZE = int(get_config("CHUNK_SIZE", 128))
    # default thumbnail to be used in the videos
    DEF_THUMB_NAIL_VID_S = get_config(
        "DEF_THUMB_NAIL_VID_S",
        "https://telegra.ph/file/23a73f126dfabd140cda0.jpg")
    # maximum message length in Telegram
    MAX_MESSAGE_LENGTH = int(get_config("MAX_MESSAGE_LENGTH", 4096))
    # set timeout for subprocess
    PROCESS_MAX_TIMEOUT = int(get_config("PROCESS_MAX_TIMEOUT", 1800))
    #
    ARIA_TWO_STARTED_PORT = int(get_config("ARIA_TWO_STARTED_PORT", 6800))
    EDIT_SLEEP_TIME_OUT = int(get_config("EDIT_SLEEP_TIME_OUT", 5))
    MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START = int(
        get_config("MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START", 600))
    MAX_TG_SPLIT_FILE_SIZE = int(
        get_config("MAX_TG_SPLIT_FILE_SIZE", 1900000000))
    # add config vars for the display progress
    FINISHED_PROGRESS_STR = get_config("FINISHED_PROGRESS_STR", "█")
    UN_FINISHED_PROGRESS_STR = get_config("UN_FINISHED_PROGRESS_STR", "░")
    # add offensive API
    TG_OFFENSIVE_API = get_config("TG_OFFENSIVE_API", None)
    # URL for the rclone configuration
    R_CLONE_CONF_URI = get_config("R_CLONE_CONF_URI", None)
    # Destination folder for the rclone
    R_CLONE_DEST = get_config("R_CLONE_DEST", "/torrentleech")
    # because, https://t.me/c/1494623325/5603
    SHOULD_USE_BUTTONS = get_config("SHOULD_USE_BUTTONS", False)
    #
    LOG_FILE_ZZGEVC = get_config("LOG_FILE_ZZGEVC", "torrentleech.log")
    #
    SP_LIT_ALGO_RITH_M = get_config("SP_LIT_ALGO_RITH_M", "hjs")
    #
    DIS_ABLE_ST_GFC_COMMAND_I = get_config("DIS_ABLE_ST_GFC_COMMAND_I", False)
Exemplo n.º 11
0
class Commandi:
    LEECH = get_config(
        "COMMANDI_LEECH",
        "vleech"
    )
    PURGE = get_config(
        "COMMANDI_PURGE",
        "vpurge"
    )
    YTDL = get_config(
        "COMMANDI_YTDL",
        "vytdl"
    )
    STATUS = get_config(
        "COMMANDI_STATUS",
        "vstatus"
    )
    CANCEL = get_config(
        "COMMANDI_CANCEL",
        "vcancel"
    )
    EXEC = get_config(
        "COMMANDI_EXEC",
        "vexec"
    )
    EVAL = get_config(
        "COMMANDI_EVAL",
        "veval"
    )
    RENAME = get_config(
        "COMMANDI_RENAME",
        "vrename"
    )
    UPLOAD = get_config(
        "COMMANDI_UPLOAD",
        "vupload"
    )
    HELP = get_config(
        "COMMANDI_HELP",
        "vhelp"
    )
    SAVETHUMBNAIL = get_config(
        "COMMANDI_SAVETHUMBNAIL",
        "vsave"
    )
    CLEARTHUMBNAIL = get_config(
        "COMMANDI_CLEARTHUMBNAIL",
        "vclear"
    )
    GET_RCLONE_CONF_URI = get_config(
        "COMMANDI_GET_RCLONE_CONF_URI",
        "geturi"
    )
    UPLOAD_LOG_FILE = get_config(
        "COMMANDI_UPLOAD_LOG_FILE",
        "log"
    )