understanding commited on
Commit
969faca
Β·
verified Β·
1 Parent(s): 7ec2e33

Update bot/ui/texts.py

Browse files
Files changed (1) hide show
  1. 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 me a **video/document** in private chat and I’ll upload it to YouTube.\n\n"
5
- "**Quick Commands**\n"
6
- "β€’ /auth β€” Add Google (YouTube) profile\n"
7
- "β€’ /profiles β€” Show profiles + set current\n"
8
- "β€’ /speedtest β€” Server speed + disk + uptime\n"
9
- "β€’ /help β€” Full guide\n"
10
  )
11
 
12
  HELP_TEXT = (
13
- "πŸ“Œ **Help / Guide**\n\n"
14
- "βœ… **1) First time setup**\n"
15
- "β€’ Use /auth\n"
16
- "β€’ Paste Google OAuth JSON OR send Client ID + Secret\n"
17
- "β€’ Open the link, allow access\n"
18
- "β€’ Done βœ… profile connected\n\n"
19
- "βœ… **2) Upload video**\n"
20
- "β€’ Just send video/document\n"
21
- "β€’ Title: file name (auto)\n"
22
- "β€’ Description: your caption (if any)\n"
23
- "β€’ Privacy: default **Private**\n\n"
24
- "βœ… **3) Profiles**\n"
25
- "β€’ /profiles shows only connected profiles\n"
26
- "β€’ Tap button to set **Current** profile\n\n"
27
- "βœ… **4) Speedtest**\n"
28
- "β€’ /speedtest (server ping + download + upload + disk + uptime)\n"
29
- "β€’ Optional: /speedtest 100 (bigger download test)\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 or press Cancel."
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`{}`"