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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
# 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")
            ],
        ]
    )