|
|
|
|
|
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup |
|
|
|
|
|
|
|
|
class Messages: |
|
|
|
|
|
|
|
|
|
|
|
HELP = "Help ๐" |
|
|
|
|
|
ABOUT = "About ๐" |
|
|
|
|
|
STATS_BTN = "Stats ๐" |
|
|
|
|
|
DONATE = "Donate ๐ธ" |
|
|
|
|
|
REFRESH = "Refresh โป๏ธ" |
|
|
|
|
|
BACK = "Back ๐ก" |
|
|
|
|
|
CLEAN = "Clean my files ๐ฎ" |
|
|
|
|
|
AS_DOC = "As document ๐" |
|
|
|
|
|
AS_MEDIA = "As media ๐บ" |
|
|
|
|
|
MERGE_BTN = "Merge ๐ ๏ธ" |
|
|
|
|
|
CHECK = "Check ๐" |
|
|
|
|
|
REPLACE = "Replace โญ" |
|
|
|
|
|
SAVE = "Save ๐พ" |
|
|
|
|
|
DELETE = "Delete ๐ฎ" |
|
|
|
|
|
RATE = "Rate me โญ" |
|
|
|
|
|
|
|
|
|
|
|
PRIVATE_CHAT = "A private chat can't be used ๐" |
|
|
|
|
|
NO_LOG_ID = "No log channel ID have been provided !" |
|
|
|
|
|
ERROR_LOG_CHECK = "An error happened while checking Log channel ๐ Make sure haven't provided a wrong Log channel ID ๐ง" |
|
|
|
|
|
DL_THUMBS = "Downloading {} thumbs" |
|
|
|
|
|
DOWNLOADED_THUMBS = "Downloaded {} of {} thumbs" |
|
|
|
|
|
BOT_RESTARTED = """ |
|
|
Bot restarted ! |
|
|
|
|
|
**Old boot time** : `{}` |
|
|
**New boot time** : `{}` |
|
|
""" |
|
|
|
|
|
RESEND_TASK = """ |
|
|
โ ๏ธ **Warning** : the bot restarted while you were using it |
|
|
Your task was stopped, kindly send it again |
|
|
""" |
|
|
|
|
|
TASK_EXPIRED = """ |
|
|
Your task was running for more than {} minutes, it has been stopped |
|
|
|
|
|
Don't go AFK next time ๐ |
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
BANNED = """ |
|
|
**Sorry you're banned ๐** |
|
|
|
|
|
Report this at @EDM115_chat if you think this is a mistake, I may unban you |
|
|
""" |
|
|
|
|
|
NEW_USER_BAD = """ |
|
|
**#NEW_USER** ๐ |
|
|
|
|
|
**User profile :** `{}` |
|
|
**User ID :** `[AttributeError]` Can't get it |
|
|
**Profile URL :** Can't get it |
|
|
""" |
|
|
|
|
|
NEW_USER = """ |
|
|
**#NEW_USER** ๐ |
|
|
|
|
|
**User profile :** `{}` {} |
|
|
**User ID :** `{}` |
|
|
**Profile URL :** [tg://user?id={}](tg://user?id={}) |
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
UNKNOWN_SIZE = """ |
|
|
**Size :** Unknown |
|
|
|
|
|
This may take a while, go grab a coffee โ๏ธ |
|
|
""" |
|
|
|
|
|
PROGRESS_MSG = """ |
|
|
{} |
|
|
{} |
|
|
|
|
|
**Powered by @EDM115bots** |
|
|
""" |
|
|
|
|
|
PROCESSING = "**Processingโฆ**" |
|
|
|
|
|
SPEED = "**Speed :**" |
|
|
|
|
|
ETA = "**ETA :**" |
|
|
|
|
|
|
|
|
|
|
|
START_TXT = "โน๏ธ The bot have successfully started at `{}` ๐ช" |
|
|
|
|
|
STOP_TXT = "โน๏ธ The bot goes sleeping at `{}` ๐ด" |
|
|
|
|
|
STARTING_BOT = "Starting botโฆ" |
|
|
|
|
|
CHECK_LOG = "Checking Log channelโฆ" |
|
|
|
|
|
LOG_CHECKED = "Log channel alright" |
|
|
|
|
|
BOT_RUNNING = "Bot is running now ! Join @EDM115bots" |
|
|
|
|
|
WRONG_LOG = """ |
|
|
Error : the provided **LOGS_CHANNEL** (`{}`) is incorrect |
|
|
Bot crashed ๐ช |
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
MAX_TASKS = """ |
|
|
Sorry, the bot is currently full ๐ฅบ |
|
|
|
|
|
{} tasks are already running, please wait few minutes |
|
|
""" |
|
|
|
|
|
CHOOSE_EXT_MODE = """ |
|
|
Select the extraction mode for that {} ๐ |
|
|
|
|
|
{} : **Normal mode** |
|
|
๐ : **Password protected** |
|
|
๐ผ๏ธ : **Change the thumbnail** |
|
|
๐ผ๏ธโ : **Change the thumbnail and rename the file** |
|
|
โ : **Cancel your task** |
|
|
""" |
|
|
|
|
|
CHOOSE_EXT_MODE_MERGE = """ |
|
|
Select the extraction mode for that merged file ๐ |
|
|
|
|
|
๐๏ธ : **Normal mode** |
|
|
๐ : **Password protected** |
|
|
โ : **Cancel your task** |
|
|
""" |
|
|
|
|
|
EXT_CAPTION = """ |
|
|
`{}` |
|
|
|
|
|
Successfully extracted by @unzip_edm115bot ๐ฅฐ |
|
|
""" |
|
|
|
|
|
URL_UPLOAD = """ |
|
|
`{}` is too huge to be uploaded to Telegram (`{}`) |
|
|
|
|
|
Instead, I made it available here : {} ๐ฅฐ |
|
|
""" |
|
|
|
|
|
URL_ERROR = """ |
|
|
An error happened for `{}` ๐ |
|
|
|
|
|
**Error code :** `{}` |
|
|
**Error type :** `{}` |
|
|
**Error message :** `{}` |
|
|
|
|
|
Please report this at @EDM115_chat if you think this is a serious error |
|
|
""" |
|
|
|
|
|
REPORT_TEXT = """ |
|
|
๐ข --Report sent-- |
|
|
|
|
|
**User :** `{}` |
|
|
**Message :** `{}` |
|
|
|
|
|
#Report #Action_Required |
|
|
""" |
|
|
|
|
|
LOG_CAPTION = """ |
|
|
**The file : ** `{}` |
|
|
|
|
|
have been saved from the URL |
|
|
|
|
|
`{}` |
|
|
""" |
|
|
|
|
|
EXT_FAILED_TXT = """ |
|
|
**Extraction failed ๐** |
|
|
|
|
|
**What to do ?** |
|
|
|
|
|
โข Please make sure archive isnโt corrupted |
|
|
โข Please make sure that you selected the right mode ! |
|
|
โข Also check if you sent the right password (it's case sensitive) |
|
|
โข Maybe your archive format isnโt supported yet ๐ |
|
|
|
|
|
|
|
|
**โ IN ALL CASES โ **, please send **/clean**, else you couldnโt send any other task ๐๐ซ (may be fixed in the future) |
|
|
|
|
|
Please report this at @EDM115_chat if you think this is a serious error |
|
|
""" |
|
|
|
|
|
HOW_MANY_UPLOADED = "`{}` files were extracted from that archive" |
|
|
|
|
|
PLS_REPLY = "You need to reply to a picture for saving it as custom thumbnail ๐ค" |
|
|
|
|
|
NO_MERGE_TASK = """ |
|
|
Bruh there's no merge task ongoing ๐ฟ |
|
|
Use **/merge** to start one |
|
|
""" |
|
|
|
|
|
LOG_TXT = """ |
|
|
**Extract log ๐** |
|
|
|
|
|
**User ID :** `{}` |
|
|
**File name :** `{}` |
|
|
**File size :** `{}` |
|
|
""" |
|
|
|
|
|
PASS_TXT = """ |
|
|
**Password of the above archive is ๐** |
|
|
|
|
|
`{}` |
|
|
""" |
|
|
|
|
|
DL_URL = """ |
|
|
**Trying to downloadโฆ Please wait** |
|
|
|
|
|
**URL :** `{}` |
|
|
|
|
|
""" |
|
|
|
|
|
REFRESH_STATS = "Refreshing statsโฆ โป๏ธ" |
|
|
|
|
|
ACTUAL_THUMB = "Your actual thumbnail" |
|
|
|
|
|
START_TEXT = """ |
|
|
Hi **{}** ๐, I'm **Unarchiver bot** ๐ฅฐ |
|
|
|
|
|
|
|
|
I can extract archives like `zip`, `rar`, `tar`, โฆ |
|
|
|
|
|
**Made with โค๏ธ by @EDM115bots** |
|
|
|
|
|
**/donate** if you can ๐ฅบ |
|
|
""" |
|
|
|
|
|
HELP_TXT = """ |
|
|
**โข How to extract ๐ค** |
|
|
|
|
|
**1)** Send the file or link that you want to extract |
|
|
**2)** Click on extract button (If you sent a link use `๐` button. If it's a file just use `๐๏ธ` button) |
|
|
|
|
|
|
|
|
**โข How to change upload mode ๐ค** |
|
|
Send **/mode** |
|
|
|
|
|
|
|
|
**Note :** |
|
|
**1.** If your archive is password protected select `๐` button |
|
|
**2.** Please donโt send corrupted files ! If you sent one by mistake just send **/clean** |
|
|
**3.** If your archive have +95 files in it then bot canโt show all of extracted files to select from (yet). So in that case if you canโt see your file in the buttons just click on `Upload all ๐ค` button. It will send all extracted files to you ! |
|
|
|
|
|
|
|
|
**โข Got an error ?** |
|
|
Visit edm115.eu.org/unzip#help |
|
|
|
|
|
|
|
|
**โข I wanna have help ๐ฅบ** |
|
|
|
|
|
PM me at **@EDM115** or join the chat **@EDM115_chat** |
|
|
""" |
|
|
|
|
|
ABOUT_TXT = """ |
|
|
**About Unarchiver bot [v6.3.2]** |
|
|
|
|
|
โข **Language :** [Python 3.11.5](https://www.python.org/) |
|
|
โข **Framework :** [Pyrogram 2.0.106](https://pyrogram.org/) |
|
|
โข **Source code :** [EDM115/unzip-bot](https://github.com/EDM115/unzip-bot) |
|
|
โข **Developer :** [EDM115](https://github.com/EDM115) |
|
|
|
|
|
**[Rate me โญ](https://t.me/BotsArchive/2705)** |
|
|
Made with โค๏ธ by **@EDM115bots** |
|
|
""" |
|
|
|
|
|
DONATE_TEXT = """ |
|
|
I'm going to be honest : **this bot costs me money**โฆ |
|
|
Nothing's free on this world, however I try to keep this bot for free for as many people as possible |
|
|
I don't like to put restrictions, nor getting your PM's flooded with adsโฆ |
|
|
|
|
|
So if you can, donate :) |
|
|
It helps out a ton, covers the costs (hosting, updating, โฆ ๐จโ๐ป) |
|
|
|
|
|
--How ?-- |
|
|
โข **[Paypal](https://www.paypal.me/8EDM115)** |
|
|
โข **[GitHub Sponsors](https://github.com/sponsors/EDM115)** |
|
|
โข **[Directly in Telegram](https://t.me/EDM115bots/544)** |
|
|
โข **[BuyMeACoffee](https://www.buymeacoffee.com/edm115)** |
|
|
โข **[Send cryptos (not recommended)](https://edm115.shadd.eu.org/)** |
|
|
|
|
|
Thanks for your contribution ๐ |
|
|
|
|
|
--Side note :-- |
|
|
Donation doesn't count as a VIP subscription. Check **/vip** for more info |
|
|
""" |
|
|
|
|
|
VIP_INFO = """ |
|
|
Wanna help the developer of this __amazing__ bot ? |
|
|
Here's how : Become a VIP user and benefit from extra perks ! |
|
|
|
|
|
**VIP perks :** |
|
|
- No max tasks limit |
|
|
- No AFK timeout |
|
|
- Get a better support |
|
|
- Upload files up to 4Gb |
|
|
- Early access to new features |
|
|
- Access a second bot exclusive to VIPs __(subject to conditions)__ |
|
|
- And moreโฆ |
|
|
|
|
|
**What's the price ?** |
|
|
- `1$/month` |
|
|
- `10$/year` |
|
|
|
|
|
**How to become a VIP ?** |
|
|
1) Send **/pay** to the bot |
|
|
2) Choose your subscription |
|
|
3) Send a screenshot of your payment to **@EDM115** |
|
|
4) Enjoy your VIP perks ! |
|
|
|
|
|
**What happens when my subscription ends ?** |
|
|
If you choosed GitHub Sponsors, Telegram Donate or BuyMeACoffee, you will be automatically renewed until you cancel it |
|
|
If you choosed PayPal, you will have to redo the 4 above steps |
|
|
You will be notified few days before you subscription ends so you can check if you want to renew it or not |
|
|
|
|
|
**I wanna cancel my subscription** |
|
|
Just send **/stoppay** and follow the instructions according to the platform you selected |
|
|
Your payment will be cancelled and you will keep your VIP perks until the end of your subscription |
|
|
(i.e. if you paid for 1 month, from 05/01/2024 to 05/02/2024 and you cancel your subscription on 15/01/2024, your perks will stay until 05/02/2024) |
|
|
|
|
|
**What is the referral system ?** |
|
|
Referrals have benefits for both sides :) |
|
|
- For the referrer : you get 1 month of VIP for free for each 3 new VIPs you bring |
|
|
- For the referred : you get 1 month of VIP for free if you take the monthly subscription, and 3 months for free if you take the yearly subscription |
|
|
How to input the referral code ? Just send **/pay** to the bot and follow the instructions |
|
|
""" |
|
|
|
|
|
VIP_REQUIRED_MESSAGE = """ |
|
|
Use this command as a reply to a messsage, where you have the following (ONE PER LINE) : |
|
|
The user ID (int) |
|
|
When the subscription starts (in %Y-%m-%dT%H:%M:%SZ format) |
|
|
When the subscription ends (same) |
|
|
Which platform had been used [paypal, telegram, sponsor, bmac] |
|
|
At which frequency the user is billed [monthly, yearly] |
|
|
Is the user a early supporter (can be obtained only the first 3 months) [True, False] |
|
|
Is the user also a donator [True, False] |
|
|
When does the user ever started a subscription (date) |
|
|
How many successful payments had been done (int) |
|
|
Is there been any gap between payments [True, False] |
|
|
If the user had been gifted a Premium plan [True, False] |
|
|
The user referral code (str) |
|
|
Is this a lifetime free subscription [True, False] |
|
|
""" |
|
|
|
|
|
VIP_ADDED_USER = """ |
|
|
The following user had been added with the following infos : |
|
|
User ID : `{}` |
|
|
Start date : `{}` |
|
|
End date : `{}` |
|
|
Platform : `{}` |
|
|
Frequency : `{}` |
|
|
Early supporter : `{}` |
|
|
Donator : `{}` |
|
|
First subscription date : `{}` |
|
|
Successful payments : `{}` |
|
|
Gap between payments : `{}` |
|
|
Gifted : `{}` |
|
|
Referral code : `{}` |
|
|
Lifetime : `{}` |
|
|
""" |
|
|
|
|
|
CLEAN_TXT = """ |
|
|
**Are sure want to clean your task ๐ค** |
|
|
|
|
|
Note : This action cannot be undone ! |
|
|
""" |
|
|
|
|
|
SELECT_UPLOAD_MODE_TXT = """ |
|
|
Select your upload mode ๐ |
|
|
|
|
|
**Current upload mode is :** `{}` |
|
|
""" |
|
|
|
|
|
CHANGED_UPLOAD_MODE_TXT = "**Successfully changed upload mode to** `{}` โ
" |
|
|
|
|
|
EXISTING_THUMB = """ |
|
|
A thumbnail already have been saved ๐
What you wanna do ? |
|
|
โข Checking the actual thumbnail |
|
|
โข Replace it with the new one you just sent |
|
|
โข Cancel |
|
|
""" |
|
|
|
|
|
SAVING_THUMB = "Are you sure you want to save this thumbnail ๐ค" |
|
|
|
|
|
SAVED_THUMBNAIL = "**Successfully saved this thumbnail โ
**" |
|
|
|
|
|
DEL_CONFIRM_THUMB = """ |
|
|
Do you really want to delete your thumbnail ? |
|
|
โข Check the actual thumbnail |
|
|
โข Delete it |
|
|
โข Cancel |
|
|
""" |
|
|
|
|
|
DEL_CONFIRM_THUMB_2 = "Do you really want to delete your thumbnail ?" |
|
|
|
|
|
DELETED_THUMB = "**Successfully removed your thumbnail โ
**" |
|
|
|
|
|
ERROR_THUMB_RENAME = "Error on thumb rename" |
|
|
|
|
|
ERROR_THUMB_UPDATE = "Error while updating thumb URL on DB" |
|
|
|
|
|
ERROR_TELEGRAPH_UPLOAD = "Error on Telegra.ph upload" |
|
|
|
|
|
ERROR_THUMB_DEL = "Error on thumb deletion in DB : {}" |
|
|
|
|
|
AFTER_OK_DL_TXT = """ |
|
|
**Successfully downloaded โ
** |
|
|
|
|
|
**Download time :** `{}` |
|
|
**Status :** Testing the archiveโฆ Please wait |
|
|
""" |
|
|
|
|
|
AFTER_OK_MERGE_DL_TXT = """ |
|
|
**Successfully downloaded all {} files โ
** |
|
|
|
|
|
**Download time :** `{}` |
|
|
**Status :** Merging the archiveโฆ Please wait |
|
|
""" |
|
|
|
|
|
AFTER_OK_MERGE_TXT = """ |
|
|
**Successfully merged โ
** |
|
|
|
|
|
**Merge time :** `{}` |
|
|
**Status :** Processing the archiveโฆ Please wait |
|
|
""" |
|
|
|
|
|
AFTER_OK_TEST_TXT = """ |
|
|
**Successfully tested โ
** |
|
|
|
|
|
**Test time :** `{}` |
|
|
**Status :** Extracting the archiveโฆ Please wait |
|
|
""" |
|
|
|
|
|
EXT_OK_TXT = """ |
|
|
**Extraction successful โ
** |
|
|
|
|
|
**Extraction time :** `{}` |
|
|
**Status :** Processing the extracted filesโฆ Please wait |
|
|
""" |
|
|
|
|
|
ERROR_TXT = """ |
|
|
**Error happened ๐** |
|
|
|
|
|
`{}` |
|
|
|
|
|
Please report this at @EDM115_chat if you think this is a serious error |
|
|
""" |
|
|
|
|
|
CANCELLED_TXT = "**{} โ
**" |
|
|
|
|
|
DL_STOPPED = "โ
The download of your file have successfully been cancelled ๐" |
|
|
|
|
|
PROCESSING_TASK = "**โ
Processing your taskโฆ Please wait**" |
|
|
|
|
|
ERROR_GET_MSG = "Error on getting messages from user : {}" |
|
|
|
|
|
PROCESS_MSGS = "**Processing {} messagesโฆ Please wait**" |
|
|
|
|
|
DL_FILES = """ |
|
|
**Trying to download file {}/{}โฆ Please wait** |
|
|
|
|
|
""" |
|
|
|
|
|
PROCESS_MERGE = """ |
|
|
Processing an user queryโฆ |
|
|
|
|
|
User ID : {} |
|
|
Task : #Merge |
|
|
|
|
|
File : {} |
|
|
""" |
|
|
|
|
|
PLS_SEND_PASSWORD = "**Please send me the password ๐**" |
|
|
|
|
|
PASSWORD_PROTECTED = "That archive is password protected ๐ก **Don't fool me !** " |
|
|
|
|
|
SELECT_FILES = "Select files to upload ๐" |
|
|
|
|
|
UNABLE_GATHER_FILES = """ |
|
|
Unable to gather the files to upload ๐ฅ |
|
|
Choose either to upload everything, or cancel the process |
|
|
""" |
|
|
|
|
|
FATAL_ERROR = "Fatal error : uncorrect archive format" |
|
|
|
|
|
USER_QUERY = """ |
|
|
Processing an user queryโฆ |
|
|
|
|
|
User ID : {} |
|
|
""" |
|
|
|
|
|
INVALID_URL = "That's not a valid url ๐" |
|
|
|
|
|
NOT_AN_ARCHIVE = """ |
|
|
That's not an archive ๐ |
|
|
|
|
|
**Try to @transload it** |
|
|
""" |
|
|
|
|
|
DEF_NOT_AN_ARCHIVE = """ |
|
|
This file is NOT an archive ๐ |
|
|
If you believe it's an error, send the file to **@EDM115** |
|
|
""" |
|
|
|
|
|
PROCESSING2 = "`Processingโฆ โณ`" |
|
|
|
|
|
UNZIP_HTTP = "Can't use unzip_http on {} : {}" |
|
|
|
|
|
ERR_DL = "Error on download : {}" |
|
|
|
|
|
CANT_DL_URL = "**Sorry, I can't download that URL ๐ญ Try to @transload it**" |
|
|
|
|
|
GIVE_ARCHIVE = "Give me an archive to extract ๐" |
|
|
|
|
|
ITS_SPLITTED = """ |
|
|
This file is splitted |
|
|
Use the **/merge** command |
|
|
""" |
|
|
|
|
|
SPL_RZ = "Splitted RAR/ZIP files in .rxx or .zxx format can't be processed yet" |
|
|
|
|
|
TRY_DL = """ |
|
|
**Trying to downloadโฆ Please wait** |
|
|
|
|
|
""" |
|
|
|
|
|
QUERY_PARSE_ERR = """ |
|
|
Fatal query parsing error ๐ |
|
|
|
|
|
Please contact @EDM115_chat with details and screenshots |
|
|
""" |
|
|
|
|
|
GIVE_NEW_NAME = """ |
|
|
Current file name : `{}` |
|
|
|
|
|
Please send the new file name (**--INCLUDE THE FILE EXTENTION !--**) |
|
|
""" |
|
|
|
|
|
SPLITTING = "**Splitting {}โฆ Please wait**" |
|
|
|
|
|
ERR_SPLIT = "An error occured while splitting a file above 2 Gb ๐ฅ" |
|
|
|
|
|
SEND_ALL_PARTS = "Trying to send all parts of {} to youโฆ Please wait" |
|
|
|
|
|
UPLOADED = """ |
|
|
**Successfully uploaded โ
** |
|
|
|
|
|
**Join @EDM115bots โค๏ธ** |
|
|
""" |
|
|
|
|
|
NO_FILE_LEFT = "There's no file left to upload" |
|
|
|
|
|
SENDING_FILE = "Sending that file to youโฆ Please wait" |
|
|
|
|
|
SEND_ALL_FILES = "Trying to send all files to youโฆ Please wait" |
|
|
|
|
|
REFRESHING = "Refreshingโฆ โณ" |
|
|
|
|
|
CANCELLED = "**Cancelled successfully โ
**" |
|
|
|
|
|
PROCESS_CANCELLED = "โ Process cancelled" |
|
|
|
|
|
|
|
|
|
|
|
PROCESS_RUNNING = """ |
|
|
Already one process is running, don't spam ๐ |
|
|
|
|
|
Wanna clear your files from my server ? Then just send **/clean** command |
|
|
""" |
|
|
|
|
|
SPLIT_NOPE = "Those type of splitted files can't be processed yet" |
|
|
|
|
|
UNVALID = "Send a valid archive/URL" |
|
|
|
|
|
MERGE = """ |
|
|
You have splitted archives to process ? |
|
|
Send me **all** the splitted files (.001, .002, .00ร, โฆ) |
|
|
|
|
|
**AFTER** you sent them all, send **/done** and click on the `Merge ๐ ๏ธ` button |
|
|
""" |
|
|
|
|
|
DONE = """ |
|
|
If you have sent **ALL** the files, you can click on the `Merge ๐ ๏ธ` button below |
|
|
|
|
|
If you sent /done by mistake and haven't sent all the files yet, just ignore this message and re-send **/done** when ALL the files are sent |
|
|
""" |
|
|
|
|
|
STATS = """ |
|
|
**๐ซ Current bot stats ๐ซ** |
|
|
|
|
|
**๐พ Disk usage :** |
|
|
โณ **Total Disk Space :** `{}` |
|
|
โณ **Used :** `{} - {}%` |
|
|
โณ **Free :** `{}` |
|
|
โณ **Ongoing tasks :** `{}` |
|
|
|
|
|
**๐ Hardware usage :** |
|
|
โณ **CPU usage :** `{}%` |
|
|
โณ **RAM usage :** `{}%` |
|
|
โณ **Uptime :** `{}` |
|
|
""" |
|
|
|
|
|
STATS_OWNER = """ |
|
|
**๐ซ Current bot stats ๐ซ** |
|
|
|
|
|
**๐ฅ Users :** |
|
|
โณ **Users in database :** `{}` |
|
|
โณ **Total banned users :** `{}` |
|
|
|
|
|
**๐พ Disk usage :** |
|
|
โณ **Total Disk Space :** `{}` |
|
|
โณ **Used :** `{} - {}%` |
|
|
โณ **Free :** `{}` |
|
|
โณ **Ongoing tasks :** `{}` |
|
|
|
|
|
**๐ Network usage :** |
|
|
โณ **Uploaded :** `{}` |
|
|
โณ **Downloaded :** `{}` |
|
|
|
|
|
**๐ Hardware usage :** |
|
|
โณ **CPU usage :** `{}%` |
|
|
โณ **RAM usage :** `{}%` |
|
|
โณ **Uptime :** `{}` |
|
|
""" |
|
|
|
|
|
BC_REPLY = "Reply to a message to broadcast it ๐ก" |
|
|
|
|
|
BC_START = """ |
|
|
Broadcasting has started, this may take a while ๐ช |
|
|
|
|
|
Users : {}/{} |
|
|
""" |
|
|
|
|
|
BC_DONE = """ |
|
|
**Broadcast completed โ
** |
|
|
|
|
|
**Total users :** `{}` |
|
|
**Successful responses :** `{}` |
|
|
**Failed responses :** `{}` |
|
|
""" |
|
|
|
|
|
SEND_REPLY = "Reply to a message to send it ๐ก" |
|
|
|
|
|
PROVIDE_UID = "Please provide an user ID" |
|
|
|
|
|
PROVIDE_UID2 = "Please provide an user ID/username" |
|
|
|
|
|
SENDING = "Sending it, please waitโฆ ๐ช" |
|
|
|
|
|
SEND_SUCCESS = "Message successfully sent to `{}`" |
|
|
|
|
|
SEND_FAILED = """ |
|
|
It failed ๐ฃ Retry |
|
|
|
|
|
If it fails again, it means that {} haven't started the bot yet (or deleted the chat), or he's private/banned/whatever |
|
|
""" |
|
|
|
|
|
REPORT_REPLY = "Reply to a message to report it to @EDM115" |
|
|
|
|
|
REPORT_DONE = """ |
|
|
Report sucessfully sent ! An answer will arrive soon |
|
|
|
|
|
Note : if you need to reply to replies, always use that /report command (or join **@EDM115_chat**) |
|
|
""" |
|
|
|
|
|
BAN_ID = "Give an user id to ban ๐" |
|
|
|
|
|
ALREADY_BANNED = """ |
|
|
{} have already been banned |
|
|
|
|
|
|
|
|
""" |
|
|
|
|
|
ALREADY_REMOVED = "{} have already been removed from the user database" |
|
|
|
|
|
BANNED = """ |
|
|
**Successfully banned that user โ
** |
|
|
|
|
|
**User ID :** `{}` |
|
|
""" |
|
|
|
|
|
UNBAN_ID = "Give an user id to unban ๐" |
|
|
|
|
|
ALREADY_ADDED = """ |
|
|
{} is already in the user database |
|
|
|
|
|
|
|
|
""" |
|
|
|
|
|
ALREADY_UNBANNED = "{} have already been deleted from banned users database" |
|
|
|
|
|
UNBANNED = """ |
|
|
**Successfully unbanned that user โ
** |
|
|
|
|
|
**User ID :** `{}` |
|
|
""" |
|
|
|
|
|
INFO = "Send a text (shorter possible) from any user/chat. And you will have infos about it ๐" |
|
|
|
|
|
USER = "This is a WIP command that would allow you to get more stats about your utilisation of me ๐ค" |
|
|
|
|
|
UNABLE_FETCH = "Unable to fetch" |
|
|
|
|
|
USER_INFO = """ |
|
|
**User ID :** `{}` |
|
|
`{}` files uploaded |
|
|
โฆ |
|
|
|
|
|
WIP |
|
|
""" |
|
|
|
|
|
UID_UNAME_INVALID = "Error happened, The user ID/username is probably invalid" |
|
|
|
|
|
USER2_INFO = """ |
|
|
`{}` |
|
|
|
|
|
**Direct link to profile :** tg://user?id={} |
|
|
""" |
|
|
|
|
|
MAINTENANCE = """ |
|
|
Do you want the bot to go in maintenance mode ๐ค |
|
|
Current state : `{}` |
|
|
""" |
|
|
|
|
|
MAINTENANCE_ASK = """ |
|
|
False : No maintenance |
|
|
True : Maintenance |
|
|
Send the appropriate string |
|
|
""" |
|
|
|
|
|
MAINTENANCE_DONE = "Successfully changed maintenance mode to `{}`" |
|
|
|
|
|
MAINTENANCE_ON = "Maintenance mode is currently **ON**\nTasks can't be processed. Come back later" |
|
|
|
|
|
MAINTENANCE_FAIL = "Provide one of the values" |
|
|
|
|
|
NO_THUMBS = "No thumbnails on the server yet" |
|
|
|
|
|
ERASE_ALL = """ |
|
|
๐ง WIP ๐ง |
|
|
|
|
|
**Cleaningโฆ** |
|
|
""" |
|
|
|
|
|
CLEANED = "The whole server have been cleaned ๐" |
|
|
|
|
|
NOT_CLEANED = "An error happened during /cleanall ๐" |
|
|
|
|
|
ERASE_TASKS = "Deleting {} tasksโฆ Please wait" |
|
|
|
|
|
ERASE_TASKS_SUCCESS = "Successfully deleted {} tasks โ
" |
|
|
|
|
|
LOG_SENT = "Log file sent to {}" |
|
|
|
|
|
DELETED_FOLDER = "Deleted {} folder successfully" |
|
|
|
|
|
RESTARTED_AT = "**โน๏ธ Bot restarted successfully at **`{}`" |
|
|
|
|
|
RESTARTING = "{} : Restartingโฆ" |
|
|
|
|
|
PULLING = "Pulling updatesโฆ โ" |
|
|
|
|
|
PULLED = "โ
Pulled changes, restartingโฆ" |
|
|
|
|
|
NO_PULL = "Nothing to pull ๐
" |
|
|
|
|
|
COMMANDS_LIST = """ |
|
|
Here is the list of the commands you can use (only in private btw) : |
|
|
|
|
|
**{send any file or URL}** : Prompt the extract dialog |
|
|
**/start** : To know if I'm online |
|
|
**/help** : Gives a simple help |
|
|
**/about** : Know more about me |
|
|
**/donate** : Know how you can contribute to this bot |
|
|
**/clean** : Remove your files from my server. Also useful if a task failed |
|
|
**/mode** : Change your upload mode (either `doc` or `media`) |
|
|
**/stats** : Know all the current stats about me. If you're running on Heroku, it's reset every day |
|
|
**/merge** : Merge splitted archives together |
|
|
**/done** : After you sent all the splitted archives, use this to merge them |
|
|
**/info** : Get full info about a [Message](https://docs.pyrogram.org/api/types/Message) (info returned by Pyrogram) |
|
|
**/addthumb** : Upload with a custom thumbnail (not permanant yet) |
|
|
**/delthumb** : Removes your thumbnail |
|
|
**/report** : Used by replying to a message, sends it to the bot owner (useful for bug report, or any question) |
|
|
**/commands** : This message |
|
|
|
|
|
**/admincmd** : Only if you are the Owner |
|
|
""" |
|
|
|
|
|
ADMINCMD = """ |
|
|
Here's all the commands that only the owner (you) can use : |
|
|
|
|
|
**/gitpull** : Pulls the latest changes from GitHub |
|
|
**/broadcast** : Send something to all the users |
|
|
**/sendto {user_id}** : Same as broadcast but for a single user. Don't handle replies for nowโฆ |
|
|
**/ban {user_id}** : Ban an user. He no longer can use your bot, except ifโฆ |
|
|
**/unban {user_id}** : โฆyou unban him. All his stats and settings stays saved after a ban |
|
|
**/user {user_id}** : Know more about the use of your bot by a single user |
|
|
**/user2 {user_id}** : Get full info about an [User](https://docs.pyrogram.org/api/types/User) (info returned by Pyrogram) |
|
|
**/self** : Get full info about me (info returned by Pyrogram) |
|
|
**/redbutton** : Will fully restart bot + server |
|
|
**/cleanall** : Same as `/clean`, but for the whole server |
|
|
**/logs** : Send you the logs (all of them). Useful for bug tracking. Send them to **@EDM115** if you don't understand them/need help |
|
|
**/restart** : Does a basic restart, less intrusive as the `/redbutton` one |
|
|
**/dbexport** : Exports the whole database as CSV |
|
|
**/admincmd** : This message |
|
|
**/commands** : For all the other commands |
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
ERROR_UP_BAYFILES = "Error happened on BayFiles upload (check connection, or retry later)" |
|
|
|
|
|
|
|
|
|
|
|
ALBUM = "{} tried to save a thumbnail from an album" |
|
|
|
|
|
ALBUM_NOPE = "You can't use an album. Reply to a single picture sent as photo (not as document)" |
|
|
|
|
|
DL_THUMB = "Downloading thumbnail of {}โฆ" |
|
|
|
|
|
THUMB_SAVED = "Thumbnail saved" |
|
|
|
|
|
THUMB_FAILED = "Failed to generate thumb" |
|
|
|
|
|
THUMB_ERROR = "Error happened ๐ Try again later" |
|
|
|
|
|
NO_THUMB = "You already have no thumbnail ๐
" |
|
|
|
|
|
|
|
|
|
|
|
UP_ALL = "Upload all ๐ค" |
|
|
|
|
|
CANCEL_IT = "โ Cancel" |
|
|
|
|
|
|
|
|
|
|
|
TRY_UP = """ |
|
|
**Trying to upload {}โฆ Please wait** |
|
|
|
|
|
""" |
|
|
|
|
|
CANT_FIND = "Sorry ! I can't find that file {} ๐" |
|
|
|
|
|
TOO_LARGE = "URL file is too large to send in telegram ๐ฅ" |
|
|
|
|
|
ARCHIVE_GONE = "Archive has gone from servers before uploading ๐ฅ" |
|
|
|
|
|
EMPTY_FILE = "The file {} is empty/unreachable" |
|
|
|
|
|
CHECK_MSG = """ |
|
|
**Verifying the fileโฆ Please wait** |
|
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
ERROR_MSGS = ["Error", "Can't open as archive"] |
|
|
|
|
|
|
|
|
|
|
|
class Buttons: |
|
|
START_BUTTON = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.HELP, callback_data="helpcallback"), |
|
|
InlineKeyboardButton(Messages.ABOUT, callback_data="aboutcallback"), |
|
|
], |
|
|
[ |
|
|
InlineKeyboardButton(Messages.STATS_BTN, callback_data="statscallback"), |
|
|
InlineKeyboardButton(Messages.DONATE, callback_data="donatecallback"), |
|
|
] |
|
|
] |
|
|
) |
|
|
|
|
|
REFRESH_BUTTON = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.REFRESH, callback_data="statscallback|refresh"), |
|
|
InlineKeyboardButton(Messages.BACK, callback_data="megoinhome"), |
|
|
] |
|
|
] |
|
|
) |
|
|
|
|
|
CHOOSE_E_F__BTNS = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton( |
|
|
"๐๏ธ", callback_data="extract_file|tg_file|no_pass" |
|
|
), |
|
|
InlineKeyboardButton( |
|
|
"๐", callback_data="extract_file|tg_file|with_pass" |
|
|
), |
|
|
], |
|
|
[ |
|
|
InlineKeyboardButton("๐ผ๏ธ", callback_data="extract_file|tg_file|thumb"), |
|
|
InlineKeyboardButton( |
|
|
"๐ผ๏ธโ", callback_data="extract_file|tg_file|thumbrename" |
|
|
), |
|
|
], |
|
|
[InlineKeyboardButton("โ", callback_data="cancel_dis")], |
|
|
] |
|
|
) |
|
|
|
|
|
CHOOSE_E_F_M__BTNS = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton( |
|
|
"๐๏ธ", callback_data="merged|no_pass" |
|
|
), |
|
|
InlineKeyboardButton( |
|
|
"๐", callback_data="merged|with_pass" |
|
|
), |
|
|
], |
|
|
[InlineKeyboardButton("โ", callback_data="cancel_dis")], |
|
|
] |
|
|
) |
|
|
|
|
|
CHOOSE_E_U__BTNS = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton("๐", callback_data="extract_file|url|no_pass"), |
|
|
InlineKeyboardButton("๐", callback_data="extract_file|url|with_pass"), |
|
|
], |
|
|
[ |
|
|
InlineKeyboardButton("๐ผ๏ธ", callback_data="extract_file|url|thumb"), |
|
|
InlineKeyboardButton( |
|
|
"๐ผ๏ธโ", callback_data="extract_file|url|thumbrename" |
|
|
), |
|
|
], |
|
|
[InlineKeyboardButton("โ", callback_data="cancel_dis")], |
|
|
] |
|
|
) |
|
|
|
|
|
RENAME = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton("โ", callback_data="renameit"), |
|
|
InlineKeyboardButton("๐
โโ๏ธ", callback_data="norename"), |
|
|
] |
|
|
] |
|
|
) |
|
|
|
|
|
CLN_BTNS = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.CLEAN, callback_data="cancel_dis"), |
|
|
InlineKeyboardButton(Messages.CANCEL_IT, callback_data="nobully"), |
|
|
] |
|
|
] |
|
|
) |
|
|
|
|
|
ME_GOIN_HOME = InlineKeyboardMarkup( |
|
|
[[InlineKeyboardButton(Messages.BACK, callback_data="megoinhome")]] |
|
|
) |
|
|
|
|
|
SET_UPLOAD_MODE_BUTTONS = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.AS_DOC, callback_data="set_mode|doc"), |
|
|
InlineKeyboardButton(Messages.AS_MEDIA, callback_data="set_mode|media") |
|
|
], |
|
|
] |
|
|
) |
|
|
|
|
|
I_PREFER_STOP = InlineKeyboardMarkup( |
|
|
[[InlineKeyboardButton(Messages.CANCEL_IT, callback_data="canceldownload")]] |
|
|
) |
|
|
|
|
|
MERGE_THEM_ALL = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.MERGE_BTN, callback_data="merge_this"), |
|
|
InlineKeyboardButton(Messages.CANCEL_IT, callback_data="cancel_dis"), |
|
|
] |
|
|
] |
|
|
) |
|
|
|
|
|
THUMB_REPLACEMENT = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.CHECK, callback_data="check_thumb"), |
|
|
InlineKeyboardButton(Messages.REPLACE, callback_data="save_thumb|replace"), |
|
|
], |
|
|
[InlineKeyboardButton(Messages.CANCEL_IT, callback_data="nope_thumb")], |
|
|
] |
|
|
) |
|
|
|
|
|
THUMB_FINAL = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.REPLACE, callback_data="save_thumb|replace"), |
|
|
InlineKeyboardButton(Messages.CANCEL_IT, callback_data="nope_thumb"), |
|
|
] |
|
|
] |
|
|
) |
|
|
|
|
|
THUMB_SAVE = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.SAVE, callback_data="save_thumb|save"), |
|
|
InlineKeyboardButton(Messages.CANCEL_IT, callback_data="nope_thumb"), |
|
|
] |
|
|
] |
|
|
) |
|
|
|
|
|
THUMB_DEL = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.CHECK, callback_data="check_before_del"), |
|
|
InlineKeyboardButton(Messages.DELETE, callback_data="del_thumb"), |
|
|
], |
|
|
[InlineKeyboardButton(Messages.CANCEL_IT, callback_data="nope_thumb")], |
|
|
] |
|
|
) |
|
|
|
|
|
THUMB_DEL_2 = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.DELETE, callback_data="del_thumb"), |
|
|
InlineKeyboardButton(Messages.CANCEL_IT, callback_data="nope_thumb") |
|
|
], |
|
|
] |
|
|
) |
|
|
|
|
|
RATE_ME = InlineKeyboardMarkup( |
|
|
[ |
|
|
[ |
|
|
InlineKeyboardButton(Messages.RATE, url="https://t.me/BotsArchive/2705"), |
|
|
InlineKeyboardButton(Messages.DONATE, callback_data="donatecallback") |
|
|
], |
|
|
] |
|
|
) |
|
|
|