diff --git a/bot.py b/bot.py index 1a970c668..4f8e72204 100644 --- a/bot.py +++ b/bot.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# (c) Shrimadhav U K +# (c) Shrimadhav U K S A # the logging things import logging @@ -28,11 +28,11 @@ root="plugins" ) app = pyrogram.Client( - "AnyDLBot", + "All_Url_DownloaderBot", bot_token=Config.TG_BOT_TOKEN, api_id=Config.APP_ID, api_hash=Config.API_HASH, plugins=plugins ) - Config.AUTH_USERS.add(683538773) + Config.AUTH_USERS.add(1024107352) app.run() diff --git a/plugins/dl_button.py b/plugins/dl_button.py index 54ddb46fc..e5a7f212a 100644 --- a/plugins/dl_button.py +++ b/plugins/dl_button.py @@ -267,9 +267,9 @@ async def download_coroutine(bot, session, url, file_name, chat_id, message_id, await bot.edit_message_text( chat_id, message_id, - text="""Initiating Download + text="""Yuklash natijasi URL: {} -File Size: {}""".format(url, humanbytes(total_length)) +File hajmi: {}""".format(url, humanbytes(total_length)) ) with open(file_name, "wb") as f_handle: while True: @@ -290,8 +290,8 @@ async def download_coroutine(bot, session, url, file_name, chat_id, message_id, try: current_message = """**Download Status** URL: {} -File Size: {} -Downloaded: {} +File hajmi: {} +Yuklash: {} ETA: {}""".format( url, humanbytes(total_length), diff --git a/plugins/youtube_dl_button.py b/plugins/youtube_dl_button.py index ef68a6874..132b26336 100644 --- a/plugins/youtube_dl_button.py +++ b/plugins/youtube_dl_button.py @@ -323,9 +323,9 @@ async def youtube_dl_call_back(bot, update): media_album_p = [] if images is not None: i = 0 - caption = "Ā© @TGBotsZ" + caption = "Ā© @SalomovAsliddin" if is_w_f: - caption = "/upgrade to Plan D to remove the watermark\nĀ© @AnyDLBot" + caption = "/upgrade to Plan D to remove the watermark\nĀ© @All_Url_DownloaderBot" for image in images: if os.path.exists(str(image)): if i == 0: diff --git a/plugins/youtube_dl_echo.py b/plugins/youtube_dl_echo.py index ec1a78e18..c95d2eae1 100644 --- a/plugins/youtube_dl_echo.py +++ b/plugins/youtube_dl_echo.py @@ -42,14 +42,14 @@ async def echo(bot, update): try: user = await bot.get_chat_member(update_channel, update.chat.id) if user.status == "kicked": - await update.reply_text("šŸ¤­ Sorry Dude, You are **B A N N E D šŸ¤£šŸ¤£šŸ¤£**") + await update.reply_text("šŸ¤­ Kechirasiz , Siz **B A N N E D** bo'ldingiz ") return except UserNotParticipant: #await update.reply_text(f"Join @{update_channel} To Use Me") await update.reply_text( - text="**Join My Updates Channel to use ME šŸ˜Ž šŸ¤­**", + text="**Siz mening kanalimga a'zo bo'ling šŸ˜Ž šŸ¤­**", reply_markup=InlineKeyboardMarkup([ - [ InlineKeyboardButton(text="Join My Updates Channel", url=f"https://t.me/{update_channel}")] + [ InlineKeyboardButton(text="Kanal āœ”", url=f"https://t.me/{update_channel}")] ]) ) return diff --git a/translation.py b/translation.py index 53d547190..bcb55c962 100644 --- a/translation.py +++ b/translation.py @@ -1,63 +1,59 @@ class Translation(object): - START_TEXT = """Hello, -This is a Telegram URL Upload Bot! + START_TEXT = """Siz /help buyrug'i yordamida mendan qanday foydalanishni bilib olishingiz mumkin -Please send me any direct download URL Link, i can upload to telegram as File/Video +Siz /upgrade buyrug'i yordamida yuqori funktsiyalarga ega bo'lishingiz mumkin -/help for more details.. - -Support Group : @InFoTelGroup -Ā© @SpEcHlDe , @TGBotsZ & @CWProjects""" - RENAME_403_ERR = "Sorry. You are not permitted to rename this file." - ABS_TEXT = " Please don't be selfish." - UPGRADE_TEXT = "šŸ‘‰ Create own Clone Bot.. /help for Details" - 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: +By: @All_Url_DownloaderBot .""" + RENAME_403_ERR = "Kechirasiz. Faylni nomlash uchun sizda etarli ruxsat yo'q" + ABS_TEXT = " Iltimos, xudbinlik qilmang" + UPGRADE_TEXT = "@All_Url_DownloaderBot To'lovlar \nTo'lovni to'lagandan so'ng, siz to'lovning skrinshotini @SalomovAsliddin_2oo4 yoki @SalomovAsliddinga yuborishingiz kerak." + FORMAT_SELECTION = "Istagan formatingizni tanlang: fayl hajmi \nAgar siz maxsus eskiz o'rnatmoqchi bo'lsangiz, quyidagi tugmalardan birini bosishdan oldin yoki keyin rasm yuboring." + SET_CUSTOM_USERNAME_PASSWORD = """File formatini tanlang: 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" - 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. Join : @TGBotsZ" - AFTER_SUCCESSFUL_UPLOAD_MSG_WITH_TS = "Downloaded in {} seconds. \nJoin : @TGBotsZ \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" + NOYES_URL = "@All_Url_DownloaderBot URL manzili aniqlandi. Iltimos, xizmatni buzmang!" + DOWNLOAD_START = "Server yuklanmoqda..." + UPLOAD_START = "Telegram yuklanmoqda..." + RCHD_BOT_API_LIMIT = "Ruxsat etilgan maksimal hajmdan kattaroq (50MB) Biroq, Biz uni o'rnatishga harakat qilyapmiz." + RCHD_TG_API_LIMIT = "Serverga {} sekunda yuklandi. \nFile hajmi: {}\nUzur. Ammo Telegramga max 1.5 GB fayl yuklash imkoni mavjud." + AFTER_SUCCESSFUL_UPLOAD_MSG = "Iltimos, menga foydali deb baho bering. https://t.me/SalomovAsliddin " + AFTER_SUCCESSFUL_UPLOAD_MSG_WITH_TS = "Server yuklash {} sekundda. \nA'zo bo'ling : @SalomovAsliddin \nTelegramga yuklash {} sekund." + NOT_AUTH_USER_TEXT = "Iltimos, /upgrade buyrug'i yordamida obunangizni yangilang." + NOT_AUTH_USER_TEXT_FILE_SIZE = "Aniqlangan fayl hajmi: {}. Bepul foydalanuvchilar faqat yuklashi mumkin: {} \n Iltimos, /upgrade buyrug'i yordamida obunani yangilang. \n Botda xato topsangiz, bu erda men bilan bog'lanishingiz mumkin @SalomovAsliddin " 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." + DEL_ETED_CUSTOM_THUMB_NAIL = "āœ… Maxsus eskiz muvaffaqiyatli o'chirildi." + FF_MPEG_DEL_ETED_CUSTOM_MEDIA = "āœ… Media tozalandi" + SAVED_RECVD_DOC_FILE = "Hujjat muvaffaqiyatli yuklandi." CUSTOM_CAPTION_UL_FILE = " " - NO_CUSTOM_THUMB_NAIL_FOUND = "No Custom ThumbNail found." - NO_VOID_FORMAT_FOUND = "ERROR...\nYouTubeDL said: {}" + NO_CUSTOM_THUMB_NAIL_FOUND = "Maxsus eskiz topilmadi." + NO_VOID_FORMAT_FOUND = "ERROR...\nHavola berkitilgan: {}" USER_ADDED_TO_DB = "User {} added to {} till {}." - CURENT_PLAN_DETAILS = """Current plan details + CURENT_PLAN_DETAILS = """Loyihamiz -------- Telegram ID: {} -Plan name: Free Cloned User -Expires on: 31/12/2020""" - HELP_USER = """Hai am URL Uploader bot.. +Loyiha nomi: Tezkor Bot +Expires on: 01/10/2021""" + HELP_USER = """Salom sizga yordam berishga tayyormiz: -1. Send url (Link|New Name with Extension). -2. Send Custom Thumbnail (Optional). -3. Select the button. +1. File/video url ni yuboring... +2. Tugmalardan foydalanib birini tanlang... +3. Tugmalar: SVideo - Give File as video with Screenshots DFile - Give File with Screenshots Video - Give File as video without Screenshots DFile - Give File without Screenshots -šŸ‘‰ Create own Clone Bot : šŸ‘‰ Diploy + -------- Send /me to know current plan details -Support Group : @InFoTelGroup -Ā© @TGBotsZ""" +Support Group : @SalomovAsliddin_2004 +By: @SalomovAsliddin""" 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" REPLY_TO_DOC_FOR_SCSS = "Reply to a Telegram media to get screenshots" REPLY_TO_DOC_FOR_RENAME_FILE = "Reply to a Telegram media to /rename with custom thumbnail support" - AFTER_GET_DL_LINK = "Direct Link Generated valid for {} days.\nĀ© @AnyDLBot" + AFTER_GET_DL_LINK = "Direct Link Generated valid for {} days.\n @All_Url_DownloaderBot" FF_MPEG_RO_BOT_RE_SURRECT_ED = """Syntax: /trim HH:MM:SS [HH:MM:SS]""" FF_MPEG_RO_BOT_STEP_TWO_TO_ONE = "First send /downloadmedia to any media so that it can be downloaded to my local. \nSend /storageinfo to know the media, that is currently downloaded." FF_MPEG_RO_BOT_STOR_AGE_INFO = "Video Duration: {}\nSend /clearffmpegmedia to delete this media, from my storage.\nSend /trim HH:MM:SS [HH:MM:SS] to cu[l]t a small photo / video, from the above media." @@ -68,7 +64,7 @@ class Translation(object): ERR_ONLY_TWO_MEDIA_IN_ALBUM = "Media Album should contain only two photos. Please re-send the media album, and then try again, or send only two photos in an album." INVALID_UPLOAD_BOT_URL_FORMAT = "URL format is incorrect. make sure your url starts with either http:// or https://. You can set custom file name using the format link | file_name.extension" ABUSIVE_USERS = "You are not allowed to use this bot. If you think this is a mistake, please check /me to remove this restriction." - FF_MPEG_RO_BOT_AD_VER_TISE_MENT = "https://telegram.dog/FFMpegRoBot" + FF_MPEG_RO_BOT_AD_VER_TISE_MENT = "@SalomovAsliddin" 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") @@ -76,7 +72,7 @@ class Translation(object): 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.""" CANCEL_STR = "Process Cancelled" - ZIP_UPLOADED_STR = "Uploaded {} files in {} seconds" + ZIP_UPLOADED_STR = "Server yuklangan {} file {} sekunt." FREE_USER_LIMIT_Q_SZE = """Cannot Process. Free users only 1 request per 30 minutes. /upgrade or Try 1800 seconds later."""