understanding commited on
Commit
a1097bf
·
verified ·
1 Parent(s): 40d9cf1

Update bot/ui/texts.py

Browse files
Files changed (1) hide show
  1. bot/ui/texts.py +33 -33
bot/ui/texts.py CHANGED
@@ -1,46 +1,46 @@
1
  # PATH: bot/ui/texts.py
2
  START_TEXT = (
3
- "✅ Online.\n\n"
4
- "Main:\n"
5
- " Send me a video (private chat)\n"
6
- "• /auth to add Google profile\n"
7
- "• /profiles to view profiles\n"
8
- "• /stats (owner)\n"
9
- "• /allow (owner)\n"
10
- "• /diag (owner)\n"
11
  )
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  NEED_AUTH = "❌ No authorized YouTube profile. Use /auth first."
14
  OWNER_ONLY = "❌ Owner only."
15
  NOT_ALLOWED = "❌ You are not allowed to use this bot."
16
- SENT_AUTH_LINK = "✅ Open this link and authorize:\n"
17
- UPLOAD_START = "⬇️ Downloading…"
18
- UPLOAD_TO_YT = "⬆️ Uploading to YouTube…"
19
- DONE = "✅ Uploaded!"
20
 
21
- # Auth flow UI
22
- AUTH_MENU = (
23
- "Choose how to provide Google OAuth credentials:\n"
24
- "• Paste the original JSON file contents (safer)\n"
25
- "• OR enter Client ID & Client Secret"
26
- )
27
- ASK_JSON = (
28
- "🧩 Send **client JSON** (as text) from Google Console.\n"
29
- "Tips:\n"
30
- "• Open your `client_secret_*.json` → copy all → paste here\n"
31
- "• I accept both `web` and `installed` formats"
32
- )
33
- ASK_ID_SECRET = (
34
- "🔐 Send **Client ID** and **Client Secret**.\n"
35
- "Formats supported:\n"
36
- "1) Two lines ⇒\n"
37
- " <client_id>\n"
38
- " <client_secret>\n"
39
- "2) Single line ⇒ <client_id> | <client_secret>"
40
- )
41
  CANCELLED = "❎ Cancelled."
42
  PARSE_FAIL = "❌ Couldn't parse. Try again or press Cancel."
 
 
43
  PROFILE_ADD_FAIL = "❌ profile_add failed:\n`{}`"
44
  PROFILE_LIST_FAIL = "❌ profile_list failed:\n`{}`"
45
  PICK_FAIL = "❌ pick_profile failed:\n`{}`"
46
- TOKEN_FAIL = "❌ access_token failed:\n`{}`"
 
 
 
 
 
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`{}`"
42
+ TOKEN_FAIL = "❌ access_token failed:\n`{}`"
43
+
44
+ UPLOAD_START = "⬇️ Downloading…"
45
+ UPLOAD_TO_YT = "⬆️ Uploading to YouTube…"
46
+ DONE = "✅ Uploaded!"