MohammedAlakhras's picture
Add application file
afce118
# Copyright (c) 2023 EDM115
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
class Messages:
# here
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 โญ"
# start.py
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 ๐Ÿ˜‰
"""
# database.py
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={})
"""
# unzip_help.py
UNKNOWN_SIZE = """
**Size :** Unknown
This may take a while, go grab a coffee โ˜•๏ธ
"""
PROGRESS_MSG = """
{}
{}
**Powered by @EDM115bots**
"""
PROCESSING = "**Processingโ€ฆ**"
SPEED = "**Speed :**"
ETA = "**ETA :**"
# __main__.py
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 ๐Ÿ˜ช
"""
# callbacks.py
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"
# commands.py
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
"""
# cloud_upload.py
ERROR_UP_BAYFILES = "Error happened on BayFiles upload (check connection, or retry later)"
# custom_thumbnail.py
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 ๐Ÿ˜…"
# ext_helper.py
UP_ALL = "Upload all ๐Ÿ“ค"
CANCEL_IT = "โŒ Cancel"
# up_helper.py
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**
"""
# List of error messages from p7zip
ERROR_MSGS = ["Error", "Can't open as archive"]
# Inline buttons
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")
],
]
)