YouTubeLoader / bot /ui /texts.py
understanding's picture
Update bot/ui/texts.py
0357cab verified
# PATH: bot/ui/texts.py
START_TEXT = """🎬 *StudyTube Bot*
βœ… Send a *video* or *document* (DM) β†’ preview β†’ choose title source/privacy β†’ upload.
*First-time setup*
1) /auth β†’ add credentials
2) /profiles β†’ tap *Login* (Google) β†’ then *Set default*
*Quick menu*
β€’ Add Profile β€’ Profiles β€’ Speedtest β€’ Help
Tip: During download/upload you’ll see *live speed + ETA* and final *download/upload/total time*.
"""
HELP_TEXT = """🧾 *Help & Commands*
*User commands*
/start β€” open menu
/help β€” show this help
/profiles β€” list profiles (connected or not)
/auth β€” add profile credentials (client id/secret)
/cancel β€” cancel current upload or batch
/speedtest β€” show speed + uptime + public IP (best-effort)
*Upload methods*
1) Send *video/document in DM* β†’ preview β†’ choose:
β€’ πŸ“„ Original filename
β€’ πŸ“ From caption
β€’ ✍️ Custom title/desc
Then choose privacy and Upload.
2) Upload from Telegram message link (Owner/Admin only):
/yt <t.me link>
/archive <t.me link>
*Batch (Owner/Admin only)*
/batch <links...> (one per line)
/batch --continue <links...> (continue even if a link fails)
βœ… Range mode supported inside /batch:
https://t.me/c/<chat>/<4012-4046>
(Expands and uploads each message id in range; skips non-media.)
*Common errors*
β€’ `uploadLimitExceeded` / `quotaExceeded` β†’ YouTube daily limit; try another profile or retry later
β€’ `not_authorized` β†’ /profiles β†’ Login then Set default
"""
OWNER_ONLY = "❌ Owner/Admin only."
NOT_ALLOWED = "❌ You are not allowed to use this bot."
CANCELLED = "βœ… Cancelled."
NEED_AUTH = "πŸ” No default profile. Use /auth to add credentials, then /profiles β†’ Login β†’ Set default."