understanding commited on
Commit
0357cab
Β·
verified Β·
1 Parent(s): 20955c4

Update bot/ui/texts.py

Browse files
Files changed (1) hide show
  1. bot/ui/texts.py +31 -36
bot/ui/texts.py CHANGED
@@ -1,59 +1,54 @@
1
  # PATH: bot/ui/texts.py
2
 
3
- START_TEXT = """🎬 *YouTubeLoader Bot*
4
 
5
- βœ… Send a *video* or *document* in *DM* β†’ bot will preview β†’ choose privacy/edit β†’ upload.
6
 
7
- *Setup (first time)*
8
  1) /auth β†’ add credentials
9
  2) /profiles β†’ tap *Login* (Google) β†’ then *Set default*
10
 
11
- *Commands*
12
- /start β€” menu
13
- /help β€” help
14
- /auth β€” add profile credentials
15
- /profiles β€” manage profiles (default/login/delete)
16
- /cancel β€” cancel current upload / batch
17
-
18
- *Admin/Owner only*
19
- /archive <t.me message link> β€” upload media from a Telegram message
20
- /yt <t.me message link> β€” same as /archive
21
- /dl <t.me message link> β€” same as /archive
22
- /batch <t.me links...> β€” multiple links (one per line)
23
- /diag β€” show config + worker health
24
- /allow <tg_id>, /disallow <tg_id>
25
- /stats β€” today stats
26
-
27
- Buttons in menu:
28
- β€’ Profiles β€’ Add Profile β€’ Speed Test β€’ Help
29
 
30
  Tip: During download/upload you’ll see *live speed + ETA* and final *download/upload/total time*.
31
  """
32
 
33
- HELP_TEXT = """🧾 *Help*
34
 
35
- *Upload (DM only)*
36
- β€’ Send video/document β†’ confirm β†’ upload
37
- β€’ Use *Edit* button to change title/description
38
- β€’ Privacy cycles: private β†’ unlisted β†’ public
 
 
 
39
 
40
- *Link upload (Owner/Admin)*
41
- β€’ /yt <t.me link> or /archive <t.me link>
42
- β€’ Bot fetches message, then shows preview in DM β†’ Upload button
 
 
 
43
 
44
- *Batch (Owner/Admin)*
45
- β€’ /batch <links...> (one per line)
46
- β€’ Processes in queue (1 by 1). Stops on first failure by default.
47
 
48
- *Speed Test button*
49
- β€’ Shows download/upload speed + ping + uptime (+ public IP if possible)
 
 
 
 
 
50
 
51
  *Common errors*
52
  β€’ `uploadLimitExceeded` / `quotaExceeded` β†’ YouTube daily limit; try another profile or retry later
53
- β€’ Missing env vars β†’ set them in HF Space secrets / Cloudflare Pages secrets
54
  """
55
 
56
  OWNER_ONLY = "❌ Owner/Admin only."
57
  NOT_ALLOWED = "❌ You are not allowed to use this bot."
58
  CANCELLED = "βœ… Cancelled."
59
- NEED_AUTH = "πŸ” No profiles found. Use /auth to add credentials, then /profiles β†’ Login."
 
1
  # PATH: bot/ui/texts.py
2
 
3
+ START_TEXT = """🎬 *StudyTube Bot*
4
 
5
+ βœ… Send a *video* or *document* (DM) β†’ preview β†’ choose title source/privacy β†’ upload.
6
 
7
+ *First-time setup*
8
  1) /auth β†’ add credentials
9
  2) /profiles β†’ tap *Login* (Google) β†’ then *Set default*
10
 
11
+ *Quick menu*
12
+ β€’ Add Profile β€’ Profiles β€’ Speedtest β€’ Help
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  Tip: During download/upload you’ll see *live speed + ETA* and final *download/upload/total time*.
15
  """
16
 
17
+ HELP_TEXT = """🧾 *Help & Commands*
18
 
19
+ *User commands*
20
+ /start β€” open menu
21
+ /help β€” show this help
22
+ /profiles β€” list profiles (connected or not)
23
+ /auth β€” add profile credentials (client id/secret)
24
+ /cancel β€” cancel current upload or batch
25
+ /speedtest β€” show speed + uptime + public IP (best-effort)
26
 
27
+ *Upload methods*
28
+ 1) Send *video/document in DM* β†’ preview β†’ choose:
29
+ β€’ πŸ“„ Original filename
30
+ β€’ πŸ“ From caption
31
+ β€’ ✍️ Custom title/desc
32
+ Then choose privacy and Upload.
33
 
34
+ 2) Upload from Telegram message link (Owner/Admin only):
35
+ /yt <t.me link>
36
+ /archive <t.me link>
37
 
38
+ *Batch (Owner/Admin only)*
39
+ /batch <links...> (one per line)
40
+ /batch --continue <links...> (continue even if a link fails)
41
+
42
+ βœ… Range mode supported inside /batch:
43
+ https://t.me/c/<chat>/<4012-4046>
44
+ (Expands and uploads each message id in range; skips non-media.)
45
 
46
  *Common errors*
47
  β€’ `uploadLimitExceeded` / `quotaExceeded` β†’ YouTube daily limit; try another profile or retry later
48
+ β€’ `not_authorized` β†’ /profiles β†’ Login then Set default
49
  """
50
 
51
  OWNER_ONLY = "❌ Owner/Admin only."
52
  NOT_ALLOWED = "❌ You are not allowed to use this bot."
53
  CANCELLED = "βœ… Cancelled."
54
+ NEED_AUTH = "πŸ” No default profile. Use /auth to add credentials, then /profiles β†’ Login β†’ Set default."