Update msg

Signed-off-by: breakdowns <hafitz666@outlook.co.id>
This commit is contained in:
Hafitz Setya 2021-07-05 13:47:15 +07:00 committed by GitHub
parent 551c8b6f69
commit 1c04c6f728
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 7 deletions

View File

@ -42,8 +42,8 @@ tgx, yts, eztv, torlock, rarbg
letsupload.io, hxfile.co, anonfiles.com, fembed.com, fembed.net, femax20.com,
layarkacaxxi.icu, fcdn.stream, sbplay.org, naniplay.com, naniplay.nanime.in,
naniplay.nanime.biz, sbembed.com, streamsb.net, feurl.com, pixeldrain.com,
uptobox.com (Uptobox account must be premium),
1drv.ms (Only works for file not folder or business account)
1drv.ms (Only works for file not folder or business account),
uptobox.com (Uptobox account must be premium)
```
## From Original Repos
- Mirroring direct download links, Torrent, and Telegram files to Google Drive

View File

@ -183,6 +183,7 @@ def bot_help(update, context):
/tshelp: Get help for Torrent search module
'''
if CustomFilters.sudo_user(update) or CustomFilters.owner_filter(update):
sendMessage(help_string_adm, context.bot, update)
else:

View File

@ -33,7 +33,7 @@ def direct_link_generator(link: str):
if not link:
raise DirectDownloadLinkException("`No links found!`")
elif 'youtube.com' in link or 'youtu.be' in link:
raise DirectDownloadLinkException(f"Youtube Link use /{BotCommands.WatchCommand} or /{BotCommands.TarWatchCommand}")
raise DirectDownloadLinkException(f"Use /{BotCommands.WatchCommand} to mirror Youtube link\nUse /{BotCommands.TarWatchCommand} to make tar of Youtube playlist")
elif 'zippyshare.com' in link:
return zippy_share(link)
elif 'yadi.sk' in link:

View File

@ -126,7 +126,7 @@ class GoogleDriveHelper:
try:
file_id = self.getIdFromUrl(link)
except (KeyError,IndexError):
msg = "Google drive ID could not be found in the provided link"
msg = "Google Drive ID could not be found in the provided link"
return msg
msg = ''
try:

View File

@ -18,7 +18,7 @@ def list_drive(update, context):
if button:
editMessage(msg, reply, button)
else:
editMessage('No result found', reply, button)
editMessage(f'No result found for <b>{search}</b>', reply, button)
except IndexError:
sendMessage('Send a search key along with command', context.bot, update)

View File

@ -292,14 +292,14 @@ def _mirror(bot, update, isTar=False, extract=False):
sendMessage(f"{e}", bot, update)
return
if "Youtube" in str(e):
sendMessage(f"ERROR: {e}", bot, update)
sendMessage(f"{e}", bot, update)
return
listener = MirrorListener(bot, update, pswd, isTar, tag, extract)
if bot_utils.is_gdrive_link(link):
if not isTar and not extract:
sendMessage(f"Use /{BotCommands.CloneCommand} To Copy Google Drive File/Folder", bot, update)
sendMessage(f"Use /{BotCommands.CloneCommand} to clone Google Drive file/folder\nUse /{BotCommands.TarMirrorCommand} to make tar of Google Drive folder\nUse /{BotCommands.UnzipMirrorCommand} to extracts archive Google Drive file", bot, update)
return
res, size, name = gdriveTools.GoogleDriveHelper().clonehelper(link)
if res != "":