Spaces:
Runtime error
Runtime error
Update bot/ui/texts.py
Browse files- bot/ui/texts.py +31 -36
bot/ui/texts.py
CHANGED
|
@@ -1,59 +1,54 @@
|
|
| 1 |
# PATH: bot/ui/texts.py
|
| 2 |
|
| 3 |
-
START_TEXT = """π¬ *
|
| 4 |
|
| 5 |
-
β
Send a *video* or *document*
|
| 6 |
|
| 7 |
-
*
|
| 8 |
1) /auth β add credentials
|
| 9 |
2) /profiles β tap *Login* (Google) β then *Set default*
|
| 10 |
|
| 11 |
-
*
|
| 12 |
-
|
| 13 |
-
/help β help
|
| 14 |
-
/auth β add profile credentials
|
| 15 |
-
/profiles β manage profiles (default/login/delete)
|
| 16 |
-
/cancel β cancel current upload / batch
|
| 17 |
-
|
| 18 |
-
*Admin/Owner only*
|
| 19 |
-
/archive <t.me message link> β upload media from a Telegram message
|
| 20 |
-
/yt <t.me message link> β same as /archive
|
| 21 |
-
/dl <t.me message link> β same as /archive
|
| 22 |
-
/batch <t.me links...> β multiple links (one per line)
|
| 23 |
-
/diag β show config + worker health
|
| 24 |
-
/allow <tg_id>, /disallow <tg_id>
|
| 25 |
-
/stats β today stats
|
| 26 |
-
|
| 27 |
-
Buttons in menu:
|
| 28 |
-
β’ Profiles β’ Add Profile β’ Speed Test β’ Help
|
| 29 |
|
| 30 |
Tip: During download/upload youβll see *live speed + ETA* and final *download/upload/total time*.
|
| 31 |
"""
|
| 32 |
|
| 33 |
-
HELP_TEXT = """π§Ύ *Help*
|
| 34 |
|
| 35 |
-
*
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
*
|
| 41 |
-
|
| 42 |
-
β’
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
| 48 |
-
*
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
*Common errors*
|
| 52 |
β’ `uploadLimitExceeded` / `quotaExceeded` β YouTube daily limit; try another profile or retry later
|
| 53 |
-
β’
|
| 54 |
"""
|
| 55 |
|
| 56 |
OWNER_ONLY = "β Owner/Admin only."
|
| 57 |
NOT_ALLOWED = "β You are not allowed to use this bot."
|
| 58 |
CANCELLED = "β
Cancelled."
|
| 59 |
-
NEED_AUTH = "π No
|
|
|
|
| 1 |
# PATH: bot/ui/texts.py
|
| 2 |
|
| 3 |
+
START_TEXT = """π¬ *StudyTube Bot*
|
| 4 |
|
| 5 |
+
β
Send a *video* or *document* (DM) β preview β choose title source/privacy β upload.
|
| 6 |
|
| 7 |
+
*First-time setup*
|
| 8 |
1) /auth β add credentials
|
| 9 |
2) /profiles β tap *Login* (Google) β then *Set default*
|
| 10 |
|
| 11 |
+
*Quick menu*
|
| 12 |
+
β’ Add Profile β’ Profiles β’ Speedtest β’ Help
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
Tip: During download/upload youβll see *live speed + ETA* and final *download/upload/total time*.
|
| 15 |
"""
|
| 16 |
|
| 17 |
+
HELP_TEXT = """π§Ύ *Help & Commands*
|
| 18 |
|
| 19 |
+
*User commands*
|
| 20 |
+
/start β open menu
|
| 21 |
+
/help β show this help
|
| 22 |
+
/profiles β list profiles (connected or not)
|
| 23 |
+
/auth β add profile credentials (client id/secret)
|
| 24 |
+
/cancel β cancel current upload or batch
|
| 25 |
+
/speedtest β show speed + uptime + public IP (best-effort)
|
| 26 |
|
| 27 |
+
*Upload methods*
|
| 28 |
+
1) Send *video/document in DM* β preview β choose:
|
| 29 |
+
β’ π Original filename
|
| 30 |
+
β’ π From caption
|
| 31 |
+
β’ βοΈ Custom title/desc
|
| 32 |
+
Then choose privacy and Upload.
|
| 33 |
|
| 34 |
+
2) Upload from Telegram message link (Owner/Admin only):
|
| 35 |
+
/yt <t.me link>
|
| 36 |
+
/archive <t.me link>
|
| 37 |
|
| 38 |
+
*Batch (Owner/Admin only)*
|
| 39 |
+
/batch <links...> (one per line)
|
| 40 |
+
/batch --continue <links...> (continue even if a link fails)
|
| 41 |
+
|
| 42 |
+
β
Range mode supported inside /batch:
|
| 43 |
+
https://t.me/c/<chat>/<4012-4046>
|
| 44 |
+
(Expands and uploads each message id in range; skips non-media.)
|
| 45 |
|
| 46 |
*Common errors*
|
| 47 |
β’ `uploadLimitExceeded` / `quotaExceeded` β YouTube daily limit; try another profile or retry later
|
| 48 |
+
β’ `not_authorized` β /profiles β Login then Set default
|
| 49 |
"""
|
| 50 |
|
| 51 |
OWNER_ONLY = "β Owner/Admin only."
|
| 52 |
NOT_ALLOWED = "β You are not allowed to use this bot."
|
| 53 |
CANCELLED = "β
Cancelled."
|
| 54 |
+
NEED_AUTH = "π No default profile. Use /auth to add credentials, then /profiles β Login β Set default."
|