Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,14 @@
START_BTN1_NAME = environ.get('START_BTN1_NAME', '')
START_BTN1_URL = environ.get('START_BTN1_URL', '')
if len(START_BTN1_NAME) == 0 or len(START_BTN1_URL) == 0:
START_BTN1_NAME = 'Master'
START_BTN1_URL = 'https://t.me/TamilupdatesOfficial'
START_BTN1_NAME = '🔥 Master'
START_BTN1_URL = 'https://t.me/Nafisfuad1'

START_BTN2_NAME = environ.get('START_BTN2_NAME', '')
START_BTN2_URL = environ.get('START_BTN2_URL', '')
if len(START_BTN2_NAME) == 0 or len(START_BTN2_URL) == 0:
START_BTN2_NAME = 'Support Channel'
START_BTN2_URL = 'https://t.me/KPSTorrent'
START_BTN2_NAME = '🔥 Support Channel'
START_BTN2_URL = 'https://t.me/gdrive_mirror'

BUTTON_FOUR_NAME = environ.get('BUTTON_FOUR_NAME', '')
BUTTON_FOUR_URL = environ.get('BUTTON_FOUR_URL', '')
Expand Down Expand Up @@ -587,7 +587,7 @@

AUTHOR_URL = environ.get('AUTHOR_URL', '')
if len(AUTHOR_URL) == 0:
AUTHOR_URL = 'https://telegram.me/TamilupdatesOfficial'
AUTHOR_URL = 'https://t.me/nafisfuad1'

TITLE_NAME = environ.get('TITLE_NAME', '')
if len(TITLE_NAME) == 0:
Expand All @@ -599,7 +599,7 @@

CREDIT_NAME = environ.get('CREDIT_NAME', '')
if len(CREDIT_NAME) == 0:
CREDIT_NAME = '@Nanthakps'
CREDIT_NAME = '@Nafisfuad1'

NAME_FONT = environ.get('NAME_FONT', '')
if len(NAME_FONT) == 0:
Expand Down Expand Up @@ -674,7 +674,7 @@

UPSTREAM_REPO = environ.get('UPSTREAM_REPO', '')
if len(UPSTREAM_REPO) == 0:
UPSTREAM_REPO = 'https://github.com/Tamilupdates/KPSML'
UPSTREAM_REPO = 'https://github.com/biplobhasan2070/KPSML'

UPSTREAM_BRANCH = environ.get('UPSTREAM_BRANCH', '')
if len(UPSTREAM_BRANCH) == 0:
Expand Down Expand Up @@ -922,4 +922,4 @@ def aria2c_init():
updater = tgUpdater(token=BOT_TOKEN, defaults=tgDefaults, request_kwargs={'read_timeout': 20, 'connect_timeout': 15})
bot = updater.bot
dispatcher = updater.dispatcher
job_queue = updater.job_queue
job_queue = updater.job_queue
4 changes: 2 additions & 2 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ def log(update, context):


help_string = '''
<b><a href='https://telegram.me/TamilupdatesOfficial'>Nanthakps</a></b> - The Ultimate Telegram Mirror-Leech Bot to Upload Your File & Link in Google Drive & Telegram\
\n\n<b>Choose A Help Category:</b>
The Ultimate <b>NFS MIRROR BOT</b> to Upload Your File & Link in Google Drive & Telegram\
\n\nOWNER >> <a href="http://t.me/nafisfuad1">B14CK-KN1GH7</a>\n\n<b>Choose A Help Category:</b>
'''

help_string_telegraph_user = f'''
Expand Down
119 changes: 63 additions & 56 deletions config_sample.env → config.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,77 +6,77 @@ _____REMOVE_THIS_LINE_____=True
## Rest of variable can be setup using BOT by /bsetting command

# REQUIRED CONFIG
BOT_TOKEN = ""
OWNER_ID = ""
TELEGRAM_API = ""
TELEGRAM_HASH = ""
BOT_TOKEN = "1890546901:AAE8h_Q_KmIBdVO40pUNJz7E-lHLwEz159o"
OWNER_ID = "1226270709"
TELEGRAM_API = "5310709"
TELEGRAM_HASH = "63a546bdaf18e2cbba99f87b4274fa05"

# OPTIONAL CONFIG
GDRIVE_ID = ""
GDRIVE_ID = "root"
DOWNLOAD_DIR = "/usr/src/app/downloads"
STATUS_UPDATE_INTERVAL = "2"
AUTO_DELETE_MESSAGE_DURATION = "60"
AUTO_DELETE_UPLOAD_MESSAGE_DURATION = "-1"
DATABASE_URL = ""
AUTHORIZED_CHATS = ""
SUDO_USERS = ""
IGNORE_PENDING_REQUESTS = ""
IGNORE_PENDING_REQUESTS = "true"
IS_TEAM_DRIVE = ""
USE_SERVICE_ACCOUNTS = ""
SA_MAIL = "" # SA Email id To display in USER TD Section
INDEX_URL = "" # Not end with /
INDEX_URL = "https://nfs.fuad0.workers.dev/0:" # Not end with /
STATUS_LIMIT = "2" # Recommended Value : 2 (If Using PICS)
STOP_DUPLICATE = ""
STOP_DUPLICATE = "true"
CMD_SUFFIX = ""
UPTOBOX_TOKEN = ""
TORRENT_TIMEOUT = ""
TORRENT_TIMEOUT = "20"
EXTENSION_FILTER = ""
INCOMPLETE_TASK_NOTIFIER = ""
TGH_THUMB = "" # Give Telegraph URL(graph.org) for Logs/File Thumbnail
INCOMPLETE_TASK_NOTIFIER = "true"
TGH_THUMB = "https://i.imgur.com/8x5I441.jpg" # Give Telegraph URL(graph.org) for Logs/File Thumbnail

# TURN ON/OFF FUCTIONS
LEECH_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
MIRROR_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
QB_MIRROR_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
WATCH_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
CLONE_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
ANILIST_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
WAYBACK_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
MEDIAINFO_ENABLED = "" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
SET_BOT_COMMANDS = ""
LEECH_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
MIRROR_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
QB_MIRROR_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
WATCH_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
CLONE_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
ANILIST_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
WAYBACK_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
MEDIAINFO_ENABLED = "true" # Default is False (only use by owner/sudo) Make it True (for authorized chats)
SET_BOT_COMMANDS = "true"

# UPDATE
UPSTREAM_REPO = ""
UPSTREAM_BRANCH = ""
UPDATE_PACKAGES = "False"
UPSTREAM_REPO = "https://github.com/biplobhasan2070/KPSML"
UPSTREAM_BRANCH = "master"
UPDATE_PACKAGES = "true"

# PM SUPPORT
BOT_PM = "" # If this True/False any User can Enable/Disable BOT_PM by using Usetting
BOT_PM = "true" # If this True/False any User can Enable/Disable BOT_PM by using Usetting
FORCE_BOT_PM = "" # If this True then NO User can Enable/Disable BOT_PM by using Usetting

# LEECH
LEECH_LOG = "" # Must be Started with -100xxxxxxx
LEECH_LOG = "-990065544" # Must be Started with -100xxxxxxx
LEECH_LOG_URL = "" # Use Invite link for PUBLIC/PRIVATE Leech log
LEECH_LOG_INDEXING = "" # Default is False make it True if you want leech file indexing in leech log channel
LEECH_LOG_INDEXING = "true" # Default is False make it True if you want leech file indexing in leech log channel

# MIRROR
ENABLE_USR_TD = "" # If this TRUE then User can create its own TD Category
MIRROR_LOGS = "" # Must be Started with -100xxxxxxx
ENABLE_USR_TD = "true" # If this TRUE then User can create its own TD Category
MIRROR_LOGS = "-990065544" # Must be Started with -100xxxxxxx
MIRROR_LOG_URL = "" # Use Invite link for PUBLIC/PRIVATE Mirror log
LINK_LOGS = "" # Must be Started with -100xxxxxxx
LINK_LOGS = "-990065544" # Must be Started with -100xxxxxxx

# OTHERS UTILS
TG_SPLIT_SIZE = "" # Each User can set its own using usetting
EQUAL_SPLITS = "" # Each User can Enable/Disable using usetting
AS_DOCUMENT = "" # Each User can Change Document/Media using usetting
PAID_SERVICE = "" # Default is False
TIMEZONE = "Asia/Kolkata" # Checkout for Different timezone list https://bit.ly/2JtQfVI
AS_DOCUMENT = "true" # Each User can Change Document/Media using usetting
PAID_SERVICE = "true" # Default is False
TIMEZONE = "Asia/Dhaka" # Checkout for Different timezone list https://bit.ly/2JtQfVI

# TELEGRAPH UI (graph.org)
TITLE_NAME = ""
AUTHOR_NAME = ""
AUTHOR_URL = ""
GD_INFO = ""
TITLE_NAME = "NFS MIRROR BOT"
AUTHOR_NAME = "B14CK-KN1GH7"
AUTHOR_URL = "http://t.me/Nafisfuad1"
GD_INFO = "NFS BOT"

# MULTI FORCE SUBSCRIBE
FSUB_IDS = "" # Each id Should be seperated by Space & ID must be started with -100xxxxxxx
Expand All @@ -94,22 +94,22 @@ QUEUE_UPLOAD = "" # Number(int) of all paral

# RSS (DATABASE_URL is Necessary for Rss)
RSS_DELAY = "" # Default is 900
RSS_COMMAND = "" # Command for the desired action eg. /mirror or /leech
RSS_COMMAND = "/mirror" # Command for the desired action eg. /mirror or /leech
RSS_CHAT_ID = "" # Chat ID (Started with -100xxxxxxx) where rss links will be sent
USER_SESSION_STRING = "" # Use it for 4GB leeching

# MEGA
MEGA_API_KEY = ""
MEGA_EMAIL_ID = ""
MEGA_PASSWORD = ""
MEGA_API_KEY = "DZ4nnKgQ"
MEGA_EMAIL_ID = "nafisfuad340@gmail.com"
MEGA_PASSWORD = "nafis123"

# SHORTENER
SHORTENER = "" # Seperate multiple shortner with space
SHORTENER_API = "" # Seperate multiple shortner API with space

# CRYPTS
SAME_ACC_COOKIES = "" # If using Different Account For Crypts set it to False (Deafult is True)
GDTOT_CRYPT = "" # Crypt for GDTOT
GDTOT_CRYPT = "cXdVUktrUlRTbGYvUkpJTjRpclBQeTZ6emZnUEZyVENTWW4rUk16M0NLMD0%3D" # Crypt for GDTOT
HUBDRIVE_CRYPT = "" # Crypt for HUBDRIVE
KATDRIVE_CRYPT = "" # Crypt for KATDRIVE
KOLOP_CRYPT = "" # Crypt for KOLOP + DRIVEHUB
Expand All @@ -135,23 +135,23 @@ DAILY_LEECH_LIMIT = "" # Max size upto which user
TIME_GAP = "-1" # Restrict User for accepting the consecutive link at a time (int value in seconds, -1 means no restriction)

# PROGRESS SYMBOLS
FINISHED_PROGRESS_STR = '' # Get Any from https://coolsymbol.com
UN_FINISHED_PROGRESS_STR = '' # Get Any from https://coolsymbol.com
MULTI_WORKING_PROGRESS_STR = '⬤ ⬤ ⬤ ⬤ ⬤ ⬤ ⬤' # Must have 7 Different Symbols for Dynamic Progress Bar
FINISHED_PROGRESS_STR = '🟩' # Get Any from https://coolsymbol.com
UN_FINISHED_PROGRESS_STR = '🟥' # Get Any from https://coolsymbol.com
MULTI_WORKING_PROGRESS_STR = '🟩 🟩 🟩 🟩 🟩 🟩 🟩' # Must have 7 Different Symbols for Dynamic Progress Bar

# THEME
EMOJI_THEME = "" #Default is False
SHOW_LIMITS_IN_STATS = "" #Default is false
EMOJI_THEME = "true" #Default is False
SHOW_LIMITS_IN_STATS = "true" #Default is false

# VIEW STYLE
LIST_MODE = "" # List/Seach Result in Telegraph/HTML/Tg_Direct (Default is Telegraph)

# BRANDING
CREDIT_NAME = ""
CREDIT_NAME = "NFS MIRROR BOT"

# DYNAMIC IMAGES
PICS = "" # Add multiple telgraph image links that are seperated by spaces
WALLFLARE_SEARCH = "" # Put Keyword to Download Images from wallpaperflare.com, Seperate Multiple Words by + instead of space, eg: attack+on+titan
PICS = "https://i.imgur.com/8x5I441.jpg https://i.imgur.com/JaWsptI.jpg" # Add multiple telgraph image links that are seperated by spaces
WALLFLARE_SEARCH = "anime+girls" # Put Keyword to Download Images from wallpaperflare.com, Seperate Multiple Words by + instead of space, eg: attack+on+titan
WALLTIP_SEARCH = "" # Put Keyword to Download Images from wallpapertip.com, Seperate Multiple Words by - instead of space, eg: attack-on-titan
WALLCRAFT_CATEGORY = "" # Put Category Name, Available: 3D, abstract, animals, anime, art, black, cars, city, dark, fantasy, flowers, food, holidays, love, macro, minimalism, motorcycles, music, nature, others, milies, space, sport, technologies, textures, vector, words
PIXABAY_API_KEY = "" # Sign Up Pixabay.com and Get API Key to Automatically Add 200 Images in Photos List
Expand All @@ -160,7 +160,7 @@ PIXABAY_SEARCH = "" # Put Keyword to Download

# FONT STYLE
NAME_FONT = "" # Default Name of File on Upload message, Available Options : b, code, i, u, strike, spoiler
CAPTION_FONT = "" # Default Caption of Leeched files, Available Options : b, code, i, u, strike, spoiler
CAPTION_FONT = "i" # Default Caption of Leeched files, Available Options : b, code, i, u, strike, spoiler

# TEMPLATE ( Put in One Line )
ANIME_TEMPLATE = "<b>{ro_title}</b>({na_title})\n<b>Format</b>: <code>{format}</code>\n<b>Status</b>: <code>{status}</code>\n<b>Start Date</b>: <code>{startdate}</code>\n<b>End Date</b>: <code>{enddate}</code>\n<b>Season</b>: <code>{season}</code>\n<b>Country</b>: {country}\n<b>Episodes</b>: <code>{episodes}</code>\n<b>Duration</b>: <code>{duration}</code>\n<b>Average Score</b>: <code>{avgscore}</code>\n<b>Genres</b>: {genres}\n<b>Hashtag</b>: {hashtag}\n<b>Studios</b>: {studios}\n\n<b>Description</b>: <i>{description}</i>"
Expand All @@ -169,10 +169,10 @@ IMDB_TEMPLATE = "<b>Title: </b> {title} [{year}]\n<b>Also Known As:</b> {aka}\n<
# DIFFERENT BOT BUTTONS
SAVE_MSG = ""
DISABLE_DRIVE_LINK = ""
VIEW_LINK = ""
VIEW_LINK = "true"
SOURCE_LINK = ""
START_BTN1_NAME = ""
START_BTN1_URL = ""
START_BTN1_NAME = "🔥 BOT OWNER 🔥"
START_BTN1_URL = "http://t.me/nafisfuad1"
START_BTN2_NAME = ""
START_BTN2_URL = ""
BUTTON_FOUR_NAME = ""
Expand All @@ -183,7 +183,7 @@ BUTTON_SIX_NAME = ""
BUTTON_SIX_URL = ""

# TORRENT SEARCH
SEARCH_API_LINK = ""
SEARCH_API_LINK = "https://mltb-search.onrender.com"
SEARCH_LIMIT = ""
SEARCH_PLUGINS = '["https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/rarbg.py",
"https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/piratebay.py",
Expand All @@ -197,10 +197,17 @@ SEARCH_PLUGINS = '["https://raw.githubusercontent.com/qbittorrent/search-plugins
"https://raw.githubusercontent.com/MadeOfMagicAndWires/qBit-plugins/master/engines/linuxtracker.py",
"https://raw.githubusercontent.com/MadeOfMagicAndWires/qBit-plugins/master/engines/nyaasi.py",
"https://raw.githubusercontent.com/LightDestory/qBittorrent-Search-Plugins/master/src/engines/ettv.py",
"https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/magnetdl.py",
"https://raw.githubusercontent.com/khensolomon/leyts/master/yts.py"
"https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/torlock.py",
"https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/torrentproject.py",
"https://raw.githubusercontent.com/LightDestory/qBittorrent-Search-Plugins/master/src/engines/kickasstorrents.py",
"https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/torrentgalaxy.py",
"https://raw.githubusercontent.com/LightDestory/qBittorrent-Search-Plugins/master/src/engines/glotorrents.py",
"https://raw.githubusercontent.com/LightDestory/qBittorrent-Search-Plugins/master/src/engines/thepiratebay.py",
"https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/magnetdl.py",
"https://raw.githubusercontent.com/khensolomon/leyts/master/yts.py"]'
"https://raw.githubusercontent.com/v1k45/1337x-qBittorrent-search-plugin/master/leetx.py",
"https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/anidex.py",
"https://gist.githubusercontent.com/BurningMop/fa750daea6d9fa86c8fe5d686f12ed35/raw/16397ff605b1e2f60c70379166c3e7f8df28867d/one337x.py"]'



Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ speedtest-cli
telegraph
tenacity
tgCrypto
urllib3
urllib3==1.26.16
waybackpy
xattr
yt-dlp
wget
wget
16 changes: 16 additions & 0 deletions terabox.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This is a generated file! Do not edit.

www.terabox.com FALSE / FALSE 0 csrfToken _lhZWrkb_Ii1c5ozqeYvGPqB
.terabox.com TRUE / FALSE 1695525070 browserid X9POGSxu5f10OH1HY9IHJgulvslNWVMZSHYg7lowfIJ57bPVhjEej2BQKEw=
www.terabox.com FALSE / FALSE 1694291643 lang en
.terabox.com TRUE / FALSE 1726259647 __bid_n 185edb9f8f843c67574207
.terabox.com TRUE / FALSE 1726259648 _ga GA1.1.29348135.1690341074
www.terabox.com FALSE / FALSE 1705893078 g_state {"i_l":0}
.terabox.com TRUE / TRUE 1721877079 ndus Yb_U18HteHuiyMoqmHWS7oVsUQZL2JIH_qaGTLwT
.terabox.com TRUE / FALSE 1721916034 TSID JGTvTNOuqhboARiNyzl5tvit3qPHwKhs
.terabox.com TRUE / FALSE 1722865224 PANWEB 1
www.terabox.com FALSE / FALSE 1694291646 ndut_fmt E7F875B84E9886B257BF98ACB68D228B0790499FAD5C689D3A65646E716E3659
.terabox.com TRUE / TRUE 1691706848 ab_sr 1.0.1_YjVmYTA4NTRlZDVjMzc2YzExNDFjMjlhNzg3N2FlZmZlNTEyODEwMzkzZjcyMjhmNmIxMTIyNDRlMGFlYzJlMzNkNTBjMThmOWMyOTdiNTQ0MGFiNWJjMzAyNjBjMGNhMzkxOTEwNzY4NTFlYzQ4ZjVmZjcyNjg2MWRiZGNkZGEzOWEzYzU0Yjk0ZGEyZjIzYjFmNjMzMjcwYjljMmQzMw==
.terabox.com TRUE / FALSE 1726259693 _ga_06ZNKL8C2E GS1.1.1691699648.6.1.1691699693.15.0.0
Binary file added token.pickle
Binary file not shown.