understanding commited on
Commit
473406b
Β·
verified Β·
1 Parent(s): cb2264a

Update bot/ui/texts.py

Browse files
Files changed (1) hide show
  1. 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 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"
@@ -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
- 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
 
 
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