Spaces:
Runtime error
Runtime error
Update bot/ui/texts.py
Browse files- bot/ui/texts.py +41 -24
bot/ui/texts.py
CHANGED
|
@@ -1,41 +1,58 @@
|
|
| 1 |
# PATH: bot/ui/texts.py
|
| 2 |
START_TEXT = (
|
| 3 |
"β
**StudyTube Online**\n\n"
|
| 4 |
-
"Send
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"β’ /
|
| 8 |
-
"β’ /speedtest β Server speed + disk + uptime\n"
|
| 9 |
-
"β’ /help β Full guide\n"
|
| 10 |
)
|
| 11 |
|
| 12 |
HELP_TEXT = (
|
| 13 |
-
"π **Help
|
| 14 |
-
"β
**
|
| 15 |
-
"
|
| 16 |
-
"
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
-
"β’
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"β’ /
|
| 26 |
-
"β’
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
)
|
|
|
|
| 31 |
NEED_AUTH = "β No authorized YouTube profile. Use /auth first."
|
| 32 |
OWNER_ONLY = "β Owner only."
|
| 33 |
NOT_ALLOWED = "β You are not allowed to use this bot."
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
CANCELLED = "β Cancelled."
|
| 36 |
-
PARSE_FAIL = "β Couldn't parse. Try again
|
| 37 |
|
| 38 |
SENT_AUTH_LINK = "β
Open this link and authorize:\n"
|
|
|
|
| 39 |
PROFILE_ADD_FAIL = "β profile_add failed:\n`{}`"
|
| 40 |
PROFILE_LIST_FAIL = "β profile_list failed:\n`{}`"
|
| 41 |
PICK_FAIL = "β pick_profile failed:\n`{}`"
|
|
|
|
| 1 |
# PATH: bot/ui/texts.py
|
| 2 |
START_TEXT = (
|
| 3 |
"β
**StudyTube Online**\n\n"
|
| 4 |
+
"Send a **video/document** in private chat.\n"
|
| 5 |
+
"I will ask confirmation (title/desc/privacy) then upload.\n\n"
|
| 6 |
+
"**Quick**\n"
|
| 7 |
+
"β’ /auth β’ /profiles β’ /speedtest β’ /help\n"
|
|
|
|
|
|
|
| 8 |
)
|
| 9 |
|
| 10 |
HELP_TEXT = (
|
| 11 |
+
"π **Help**\n\n"
|
| 12 |
+
"β
**Upload flow**\n"
|
| 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 |
+
"βοΈ **Edit format examples**\n"
|
| 17 |
+
"β’ `My Title | This is description`\n"
|
| 18 |
+
"β’ Multi-line:\n"
|
| 19 |
+
" Title line\n"
|
| 20 |
+
" (blank line)\n"
|
| 21 |
+
" Description lines...\n\n"
|
| 22 |
+
"π **Add profile**\n"
|
| 23 |
+
"β’ /auth\n"
|
| 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 (default ~8MB)\n"
|
| 36 |
+
"β’ /speedtest 100 (bigger test)\n\n"
|
| 37 |
+
"π‘οΈ **Owner commands**\n"
|
| 38 |
+
"β’ /allow <id>\n"
|
| 39 |
+
"β’ /disallow <id>\n"
|
| 40 |
+
"β’ /stats\n"
|
| 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 |
+
AUTH_MENU = "π Add YouTube Profile\n\nChoose how you want to send credentials:"
|
| 49 |
+
ASK_JSON = "π Send `.json` file OR paste JSON text here.\n\n(/cancel anytime)"
|
| 50 |
+
ASK_ID_SECRET = "π Send Client ID & Secret.\n\nExamples:\nβ’ two lines\nβ’ OR `id | secret`\nβ’ any blank lines ok\n\n(/cancel anytime)"
|
| 51 |
CANCELLED = "β Cancelled."
|
| 52 |
+
PARSE_FAIL = "β Couldn't parse. Try again."
|
| 53 |
|
| 54 |
SENT_AUTH_LINK = "β
Open this link and authorize:\n"
|
| 55 |
+
|
| 56 |
PROFILE_ADD_FAIL = "β profile_add failed:\n`{}`"
|
| 57 |
PROFILE_LIST_FAIL = "β profile_list failed:\n`{}`"
|
| 58 |
PICK_FAIL = "β pick_profile failed:\n`{}`"
|