Spaces:
Runtime error
Runtime error
Update bot/ui/texts.py
Browse files- bot/ui/texts.py +16 -8
bot/ui/texts.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
START_TEXT = """π¬ *YouTubeLoader Bot*
|
| 4 |
|
| 5 |
-
β
Send a *video* or *document* in DM β bot will preview β choose privacy/edit β upload.
|
| 6 |
|
| 7 |
*Setup (first time)*
|
| 8 |
1) /auth β add credentials
|
|
@@ -17,6 +17,8 @@ START_TEXT = """π¬ *YouTubeLoader Bot*
|
|
| 17 |
|
| 18 |
*Admin/Owner only*
|
| 19 |
/archive <t.me message link> β upload media from a Telegram message
|
|
|
|
|
|
|
| 20 |
/batch <t.me links...> β multiple links (one per line)
|
| 21 |
/diag β show config + worker health
|
| 22 |
/allow <tg_id>, /disallow <tg_id>
|
|
@@ -30,19 +32,25 @@ Tip: During download/upload youβll see *live speed + ETA* and final *download/
|
|
| 30 |
|
| 31 |
HELP_TEXT = """π§Ύ *Help*
|
| 32 |
|
| 33 |
-
*Upload*
|
| 34 |
β’ Send video/document β confirm β upload
|
| 35 |
β’ Use *Edit* button to change title/description
|
| 36 |
β’ Privacy cycles: private β unlisted β public
|
| 37 |
|
| 38 |
-
*
|
| 39 |
-
β’ /
|
| 40 |
-
β’
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
*Common errors*
|
| 44 |
β’ `uploadLimitExceeded` / `quotaExceeded` β YouTube daily limit; try another profile or retry later
|
| 45 |
-
β’
|
| 46 |
"""
|
| 47 |
|
| 48 |
OWNER_ONLY = "β Owner/Admin only."
|
|
|
|
| 1 |
+
# PATH: bot/ui/texts.py
|
| 2 |
|
| 3 |
START_TEXT = """π¬ *YouTubeLoader Bot*
|
| 4 |
|
| 5 |
+
β
Send a *video* or *document* in *DM* β bot will preview β choose privacy/edit β upload.
|
| 6 |
|
| 7 |
*Setup (first time)*
|
| 8 |
1) /auth β add credentials
|
|
|
|
| 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>
|
|
|
|
| 32 |
|
| 33 |
HELP_TEXT = """π§Ύ *Help*
|
| 34 |
|
| 35 |
+
*Upload (DM only)*
|
| 36 |
β’ Send video/document β confirm β upload
|
| 37 |
β’ Use *Edit* button to change title/description
|
| 38 |
β’ Privacy cycles: private β unlisted β public
|
| 39 |
|
| 40 |
+
*Link upload (Owner/Admin)*
|
| 41 |
+
β’ /yt <t.me link> or /archive <t.me link>
|
| 42 |
+
β’ Bot fetches message, then shows preview in DM β Upload button
|
| 43 |
+
|
| 44 |
+
*Batch (Owner/Admin)*
|
| 45 |
+
β’ /batch <links...> (one per line)
|
| 46 |
+
β’ Processes in queue (1 by 1). Stops on first failure by default.
|
| 47 |
+
|
| 48 |
+
*Speed Test button*
|
| 49 |
+
β’ Shows download/upload speed + ping + uptime (+ public IP if possible)
|
| 50 |
|
| 51 |
*Common errors*
|
| 52 |
β’ `uploadLimitExceeded` / `quotaExceeded` β YouTube daily limit; try another profile or retry later
|
| 53 |
+
β’ Missing env vars β set them in HF Space secrets / Cloudflare Pages secrets
|
| 54 |
"""
|
| 55 |
|
| 56 |
OWNER_ONLY = "β Owner/Admin only."
|