Spaces:
Runtime error
Runtime error
Update bot/ui/texts.py
Browse files- bot/ui/texts.py +37 -26
bot/ui/texts.py
CHANGED
|
@@ -2,38 +2,30 @@
|
|
| 2 |
START_TEXT = (
|
| 3 |
"β
**StudyTube Online**\n\n"
|
| 4 |
"Send a **video/document** in private chat.\n"
|
| 5 |
-
"I will
|
|
|
|
|
|
|
|
|
|
| 6 |
"**Quick**\n"
|
| 7 |
"β’ /auth β’ /profiles β’ /speedtest β’ /help\n"
|
| 8 |
)
|
| 9 |
|
| 10 |
HELP_TEXT = (
|
| 11 |
"π **Help**\n\n"
|
| 12 |
-
"β
**
|
| 13 |
-
"1) Send video/document\n"
|
| 14 |
"2) Bot shows preview: title/desc/privacy\n"
|
| 15 |
"3) Press **Upload** (or Edit / Privacy)\n\n"
|
| 16 |
-
"
|
| 17 |
-
"β’
|
| 18 |
-
"β’
|
| 19 |
-
"
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"β’ You can send:\n"
|
| 25 |
-
" - `.json` OAuth client file (recommended)\n"
|
| 26 |
-
" - OR Client ID + Secret in text\n\n"
|
| 27 |
-
"π **Client ID + Secret text examples**\n"
|
| 28 |
-
"β’ Two lines:\n"
|
| 29 |
-
" `<client_id>`\n"
|
| 30 |
-
" `<client_secret>`\n"
|
| 31 |
-
"β’ Any spaces/blank lines allowed (bot will pick first 2 non-empty lines)\n"
|
| 32 |
-
"β’ One line:\n"
|
| 33 |
-
" `<client_id> | <client_secret>`\n\n"
|
| 34 |
"β‘ **Speedtest**\n"
|
| 35 |
-
"β’ /speedtest
|
| 36 |
-
"β’ /speedtest 100 (bigger test)\n\n"
|
| 37 |
"π‘οΈ **Owner commands**\n"
|
| 38 |
"β’ /allow <id>\n"
|
| 39 |
"β’ /disallow <id>\n"
|
|
@@ -41,13 +33,32 @@ HELP_TEXT = (
|
|
| 41 |
"β’ /diag\n"
|
| 42 |
)
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
NEED_AUTH = "β No authorized YouTube profile. Use /auth first."
|
| 45 |
OWNER_ONLY = "β Owner only."
|
| 46 |
NOT_ALLOWED = "β You are not allowed to use this bot."
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
CANCELLED = "β Cancelled."
|
| 52 |
PARSE_FAIL = "β Couldn't parse. Try again."
|
| 53 |
|
|
|
|
| 2 |
START_TEXT = (
|
| 3 |
"β
**StudyTube Online**\n\n"
|
| 4 |
"Send a **video/document** in private chat.\n"
|
| 5 |
+
"I will show a preview (title/desc/privacy) and upload to your private YouTube.\n\n"
|
| 6 |
+
"π₯ **Link archive (admin/owner only)**\n"
|
| 7 |
+
"β’ `/archive <t.me link>` (also works with `/yt` or `/dl`)\n"
|
| 8 |
+
"β’ `/batch <start_link> <end_link>`\n\n"
|
| 9 |
"**Quick**\n"
|
| 10 |
"β’ /auth β’ /profiles β’ /speedtest β’ /help\n"
|
| 11 |
)
|
| 12 |
|
| 13 |
HELP_TEXT = (
|
| 14 |
"π **Help**\n\n"
|
| 15 |
+
"β
**Direct upload flow**\n"
|
| 16 |
+
"1) Send a video/document in private chat\n"
|
| 17 |
"2) Bot shows preview: title/desc/privacy\n"
|
| 18 |
"3) Press **Upload** (or Edit / Privacy)\n\n"
|
| 19 |
+
"π **Link archive (admin/owner only)**\n"
|
| 20 |
+
"β’ `/archive https://t.me/c/xxxx/123`\n"
|
| 21 |
+
"β’ Bot fetches via user-session, lets you pick filename, then shows preview\n\n"
|
| 22 |
+
"βοΈ **Editing title/desc**\n"
|
| 23 |
+
"Send message like:\n"
|
| 24 |
+
"`My Title`\n"
|
| 25 |
+
"`My description line 1`\n"
|
| 26 |
+
"`line 2 ...`\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
"β‘ **Speedtest**\n"
|
| 28 |
+
"β’ /speedtest\n\n"
|
|
|
|
| 29 |
"π‘οΈ **Owner commands**\n"
|
| 30 |
"β’ /allow <id>\n"
|
| 31 |
"β’ /disallow <id>\n"
|
|
|
|
| 33 |
"β’ /diag\n"
|
| 34 |
)
|
| 35 |
|
| 36 |
+
EDIT_PROMPT = (
|
| 37 |
+
"βοΈ **Send new title/description**\n\n"
|
| 38 |
+
"Format:\n"
|
| 39 |
+
"β’ First line = **Title**\n"
|
| 40 |
+
"β’ Remaining lines = **Description** (optional)\n\n"
|
| 41 |
+
"Tip: You can send just one line to only change the title.\n"
|
| 42 |
+
"(/cancel anytime)"
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
NEED_AUTH = "β No authorized YouTube profile. Use /auth first."
|
| 46 |
OWNER_ONLY = "β Owner only."
|
| 47 |
NOT_ALLOWED = "β You are not allowed to use this bot."
|
| 48 |
|
| 49 |
+
ASK_JSON = (
|
| 50 |
+
"π **Paste Google OAuth client JSON** (the `client_id` + `client_secret` one)\n\n"
|
| 51 |
+
"(/cancel anytime)"
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
ASK_ID_SECRET = (
|
| 55 |
+
"π **Send Client ID & Secret**\n\n"
|
| 56 |
+
"Examples:\n"
|
| 57 |
+
"β’ `client_id | client_secret`\n"
|
| 58 |
+
"β’ `client_id client_secret`\n\n"
|
| 59 |
+
"(/cancel anytime)"
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
CANCELLED = "β Cancelled."
|
| 63 |
PARSE_FAIL = "β Couldn't parse. Try again."
|
| 64 |
|