diff --git a/helper_funcs/display_progress.py b/helper_funcs/display_progress.py index e2f1b32fb..5bce52bbf 100644 --- a/helper_funcs/display_progress.py +++ b/helper_funcs/display_progress.py @@ -43,8 +43,8 @@ async def progress_for_pyrogram( estimated_total_time = TimeFormatter(milliseconds=estimated_total_time) progress = "[{0}{1}] \nP: {2}%\n".format( - ''.join(["█" for i in range(math.floor(percentage / 5))]), - ''.join(["░" for i in range(20 - math.floor(percentage / 5))]), + ''.join(["🌕" for i in range(math.floor(percentage / 5))]), + ''.join(["🌑" for i in range(20 - math.floor(percentage / 5))]), round(percentage, 2)) tmp = progress + "{0} of {1}\nSpeed: {2}/s\nETA: {3}\n".format( diff --git a/plugins/get_external_link.py b/plugins/get_external_link.py index e40674403..99d1614ea 100644 --- a/plugins/get_external_link.py +++ b/plugins/get_external_link.py @@ -101,7 +101,6 @@ async def get_link(bot, update): await bot.edit_message_text( chat_id=update.chat.id, text=Translation.AFTER_GET_DL_LINK.format(adfulurl, max_days), - parse_mode=pyrogram.ParseMode.HTML, message_id=a.message_id, disable_web_page_preview=True ) diff --git a/translation.py b/translation.py index 640aac467..f99b4cd1c 100644 --- a/translation.py +++ b/translation.py @@ -1,46 +1,38 @@ class Translation(object): - START_TEXT = """This is an @AnyDLBot clone created using the Open Source code available. -Source Code: https://github.com/SpEcHiDe/AnyDLBot -© @AnyDLBot""" + START_TEXT = """alive +/help for help + + RENAME_403_ERR = "Sorry. You are not permitted to rename this file." ABS_TEXT = " Please don't be selfish." - UPGRADE_TEXT = "This is an @AnyDLBot clone created using the Open Source code. \nStart @AnyDLBot to know Paid Plans!" + # UPGRADE_TEXT = "no one gonna help you 🤣🤣🤣🤣" + UPGRADE_TEXT = """ no one gonna help you 🤣🤣🤣🤣 """ FORMAT_SELECTION = "Select the desired format: file size might be approximate \nIf you want to set custom thumbnail, send photo before or quickly after tapping on any of the below buttons.\nYou can use /deletethumbnail to delete the auto-generated thumbnail." SET_CUSTOM_USERNAME_PASSWORD = """If you want to download premium videos, provide in the following format: URL | filename | username | password""" NOYES_URL = "@robot URL detected. Please use https://shrtz.me/PtsVnf6 and get me a fast URL so that I can upload to Telegram, without me slowing down for other users." - DOWNLOAD_START = "trying to download" - UPLOAD_START = "trying to upload" + DOWNLOAD_START = "downloading ⬇️" + UPLOAD_START = "uploading ⬆️" RCHD_BOT_API_LIMIT = "size greater than maximum allowed size (50MB). Neverthless, trying to upload." RCHD_TG_API_LIMIT = "Downloaded in {} seconds.\nDetected File Size: {}\nSorry. But, I cannot upload files greater than 1.5GB due to Telegram API limitations." AFTER_SUCCESSFUL_UPLOAD_MSG = "Please rate me if you find me useful. https://t.me/tlgrmcbot?start=anydl_bot-bot" AFTER_SUCCESSFUL_UPLOAD_MSG_WITH_TS = "Downloaded in {} seconds. \nPlease rate me if you find me useful. https://t.me/tlgrmcbot?start=anydl_bot-bot \nUploaded in {} seconds." NOT_AUTH_USER_TEXT = "Please /upgrade your subscription." - NOT_AUTH_USER_TEXT_FILE_SIZE = "Detected File Size: {}. Free Users can only upload: {}\nPlease /upgrade your subscription.\nIf you think this is a bug, please contact @SpEcHlDe" + NOT_AUTH_USER_TEXT_FILE_SIZE = "Detected File Size: {}. Free Users can only upload: {}\nPlease /upgrade your subscription.\nIf you think this is a bug, please contact @SpEcHlDe" SAVED_CUSTOM_THUMB_NAIL = "Custom video / file thumbnail saved. This image will be used in the video / file." DEL_ETED_CUSTOM_THUMB_NAIL = "✅ Custom thumbnail cleared succesfully." FF_MPEG_DEL_ETED_CUSTOM_MEDIA = "✅ Media cleared succesfully." SAVED_RECVD_DOC_FILE = "Document Downloaded Successfully." CUSTOM_CAPTION_UL_FILE = " " NO_CUSTOM_THUMB_NAIL_FOUND = "No Custom ThumbNail found." - NO_VOID_FORMAT_FOUND = "no-one gonna help you\nYouTubeDL said: {}" + NO_VOID_FORMAT_FOUND = "something is wrong with the URL you gave me 🤦‍♀️. If you think this could be a bug please report on https://github.com/spechide/AnyDLBot/issues OR @ThankTelegram\nYouTubeDL said: {}" USER_ADDED_TO_DB = "User {} added to {} till {}." CURENT_PLAN_DETAILS = """Current plan details -------- Telegram ID: {} Plan name: {} Expires on: {}""" - HELP_USER = """There are multiple things I can do: -👉 All Supported Video / File Formats, with custom file name and custom thumbnail support -👉 Upload as file from any HTTP link, with custom thumbnail support -👉 Convert To Streamable Video, any Telegram file -👉 Convert To Telegram Audio, the media sent as Telegram Documents -👉 ReName Telegram files, with custom thumbnail support -👉 Generate Custom Thumbnail by sending two photos in a Media Album -👉 Trim large videos, and Take Screenshots of Telegram media files. -👉 Extract compressed Telegram media -👉 Get a Telegram sticker as a Telegram downloadable media --------- + Send /me to know current plan details""" REPLY_TO_DOC_GET_LINK = "Reply to a Telegram media to get High Speed Direct Download Link" REPLY_TO_DOC_FOR_C2V = "Reply to a Telegram media to convert" @@ -61,12 +53,17 @@ class Translation(object): EXTRACT_ZIP_INTRO_ONE = "Send a compressed file first, Then reply /unzip command to the file." EXTRACT_ZIP_INTRO_THREE = "Analyzing received file. ⚠️ This might take some time. Please be patient. " UNZIP_SUPPORTED_EXTENSIONS = ("zip", "rar") - EXTRACT_ZIP_ERRS_OCCURED = "Sorry. Errors occurred while processing compressed file. Please check everything again twice, and if the issue persists, report this to @SpEcHlDe" + EXTRACT_ZIP_ERRS_OCCURED = "Sorry. Errors occurred while processing compressed file. Please check everything again twice, and if the issue persists, report this to @SpEcHlDe" EXTRACT_ZIP_STEP_TWO = """Select file_name to upload from the below options. You can use /rename command after receiving file to rename it with custom thumbnail support.""" + GET_LINK_ERRS_OCCURED = "Sorry the following Errors occurred: \n{}\nPlease check everything again twice, and if the issue persists, report this to @SpEcHlDe" CANCEL_STR = "Process Cancelled" ZIP_UPLOADED_STR = "Uploaded {} files in {} seconds" FREE_USER_LIMIT_Q_SZE = """Cannot Process. -Free users only 1 request per 30 minutes. -/upgrade or Try 1800 seconds later.""" +Free users only 1 request per 1 day. +/upgrade or Try today midnight later.""" + G_DRIVE_GIVE_URL_TO_LOGIN = "Please login using {}. Send `/gsetup `" + G_DRIVE_SETUP_IN_VALID_FORMAT = "Send `/gsetup `" + G_DRIVE_SETUP_COMPLETE = "Logged In." SLOW_URL_DECED = "Gosh that seems to be a very slow URL. Since you were screwing my home, I am in no mood to download this file. Meanwhile, why don't you try this:==> https://shrtz.me/PtsVnf6 and get me a fast URL so that I can upload to Telegram, without me slowing down for other users." + FED_UP_WITH_CRAP = "This bot is no longer leeching links for free users. @AnyDLBot is open source, and you can deploy your own telegram upload by clicking on the links, available in GitHub README. or, Better /upgrade the subscription to continue using this bot."