Spaces:
No application file
No application file
Update bot/ui/texts.py
Browse files- bot/ui/texts.py +29 -1
bot/ui/texts.py
CHANGED
|
@@ -7,6 +7,7 @@ START_TEXT = (
|
|
| 7 |
"• /profiles to view profiles\n"
|
| 8 |
"• /stats (owner)\n"
|
| 9 |
"• /allow (owner)\n"
|
|
|
|
| 10 |
)
|
| 11 |
|
| 12 |
NEED_AUTH = "❌ No authorized YouTube profile. Use /auth first."
|
|
@@ -15,4 +16,31 @@ NOT_ALLOWED = "❌ You are not allowed to use this bot."
|
|
| 15 |
SENT_AUTH_LINK = "✅ Open this link and authorize:\n"
|
| 16 |
UPLOAD_START = "⬇️ Downloading…"
|
| 17 |
UPLOAD_TO_YT = "⬆️ Uploading to YouTube…"
|
| 18 |
-
DONE = "✅ Uploaded!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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."
|
|
|
|
| 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`{}`"
|