From 8d1135b5015ffabf5531a2b052f5faadd4b38c22 Mon Sep 17 00:00:00 2001 From: leemour Date: Thu, 26 Nov 2026 00:35:10 +0100 Subject: [PATCH 1/3] docs(tg): pages from tg 0.136.0 in EN/RU/ES The tg pin moves from v0.123.0 to v0.136.0, so the release digest can announce it. 27 site corrections that tg 0.136.0 now carries itself are dropped; their RU/ES text moved into the translations first, as the entries asked. RU/ES follow the new source: the changelog's 0.124.0 to 0.136.0 sections, the command reference, and the changes in archive, mcp, permissions, search, sessions, troubleshooting and usage. Co-Authored-By: Claude Opus 5.5 --- scripts/docs-corrections.json | 1121 +++---------------------- tools.json | 2 +- translations/sources.json | 56 +- translations/tg/archive.es.md | 10 +- translations/tg/archive.ru.md | 10 +- translations/tg/bot.es.md | 4 +- translations/tg/bot.ru.md | 4 +- translations/tg/changelog.es.md | 331 ++++++++ translations/tg/changelog.ru.md | 320 +++++++ translations/tg/cli-contract.es.md | 2 +- translations/tg/cli-contract.ru.md | 2 +- translations/tg/commands.es.md | 830 +++++------------- translations/tg/commands.ru.md | 830 +++++------------- translations/tg/groups.es.md | 8 +- translations/tg/groups.ru.md | 8 +- translations/tg/mcp.es.md | 23 +- translations/tg/mcp.ru.md | 23 +- translations/tg/people.es.md | 2 +- translations/tg/people.ru.md | 2 +- translations/tg/permissions.es.md | 14 +- translations/tg/permissions.ru.md | 14 +- translations/tg/query-language.es.md | 2 +- translations/tg/query-language.ru.md | 2 +- translations/tg/remote.es.md | 16 +- translations/tg/remote.ru.md | 16 +- translations/tg/search.es.md | 22 +- translations/tg/search.ru.md | 21 +- translations/tg/sessions.es.md | 38 +- translations/tg/sessions.ru.md | 38 +- translations/tg/troubleshooting.es.md | 2 +- translations/tg/troubleshooting.ru.md | 2 +- translations/tg/usage.es.md | 23 +- translations/tg/usage.ru.md | 24 +- 33 files changed, 1439 insertions(+), 2383 deletions(-) diff --git a/scripts/docs-corrections.json b/scripts/docs-corrections.json index 92f43bf2..1aa72713 100644 --- a/scripts/docs-corrections.json +++ b/scripts/docs-corrections.json @@ -1,54 +1,4 @@ [ - { - "tool": "tg", - "slug": "usage", - "reason": "Current command reference and v0.21 breaking-change note require durations for --unanswered; bare hours are invalid. The en text is also in WireCatLabs/tg-cli#922 (2026-11-23). At the next pin bump, move this entry's es/ru replacements into translations/tg/usage..md and refresh sources.json, then drop the entry; dropping it alone brings the old es/ru text back.", - "replacements": { - "en": [ - { - "before": "`--unanswered [hours]` keeps only questions waiting for you or for a group's admins. A question is a\nmessage with `?` in it (a link's `?` does not count), or a reply to you or to an admin. It is\nanswered when you or an admin replied to it, or were the next to speak after the person who asked.\nQuestions younger than the hours given (24 by default) are left out: nobody has had time to answer.\nWhen a group's admins are not known, the command says so, and only your answers count.", - "after": "`--unanswered [duration]` keeps only questions waiting for you or for a group's admins. A question is a\nmessage with `?` in it (a link's `?` does not count), or a reply to you or to an admin. It is\nanswered when you or an admin replied to it, or were the next to speak after the person who asked.\nQuestions younger than the given duration (24 hours by default) are left out: nobody has had time to answer.\nWhen a group's admins are not known, the command says so, and only your answers count. Use a duration such as `4h` or `1d`; a bare number of hours is not accepted." - } - ], - "ru": [ - { - "before": "`--unanswered [hours]` оставляет вопросы, ожидающие вас или администраторов группы. Вопрос — сообщение с `?` (знак `?` в ссылках не учитывается) или ответ вам/администратору. Он закрыт, если вы или администратор ответили либо написали следом за автором. Вопросы моложе указанного срока (по умолчанию 24 часа) исключаются. Если администраторы неизвестны, учитываются только ваши ответы и выводится предупреждение.", - "after": "`--unanswered [duration]` оставляет вопросы, ожидающие вас или администраторов группы. Вопрос — сообщение с `?` (знак `?` в ссылках не учитывается) или ответ вам/администратору. Он закрыт, если вы или администратор ответили либо написали следом за автором. Вопросы моложе указанного срока (по умолчанию 24 часа) исключаются. Если администраторы неизвестны, учитываются только ваши ответы и выводится предупреждение. Указывайте длительность, например `4h` или `1d`; число часов без единицы не принимается." - } - ], - "es": [ - { - "before": "`--unanswered [hours]` conserva solo las preguntas pendientes de ti o de los administradores de un grupo. Una pregunta es un mensaje con `?` (no cuenta el `?` de un enlace) o una respuesta a ti o a un administrador. Se considera respondida cuando tú o un administrador respondéis a ella o sois los siguientes en hablar tras quien preguntó. Se excluyen las preguntas de menos horas que las indicadas (24 por defecto): aún no ha habido tiempo para responder. Si no se conocen los administradores del grupo, el comando lo indica y solo cuentan tus respuestas.", - "after": "`--unanswered [duration]` conserva solo preguntas pendientes para ti o los administradores. Una pregunta contiene `?` (no cuenta dentro de enlaces) o responde a ti o a un administrador. Se considera contestada si tú o un administrador respondéis o sois los siguientes en hablar tras quien preguntó. Omite preguntas más recientes que el intervalo indicado (24 horas por defecto) para dar tiempo a responder. Si no se conocen los administradores, lo avisa y solo cuenta tus respuestas. Usa una duración como `4h` o `1d`; no se admite un número de horas sin unidad." - } - ] - } - }, - { - "tool": "tg", - "slug": "usage", - "reason": "Shell ! inverts the exit status to zero inside then; capture the command status in else before dispatching on 14/4. Applied after preservation validation to the same literal example in every locale. The en text is also in WireCatLabs/tg-cli#922 (2026-11-23). At the next pin bump, move this entry's es/ru replacements into translations/tg/usage..md and refresh sources.json, then drop the entry; dropping it alone brings the old es/ru text back.", - "replacements": { - "en": [ - { - "before": "if ! tg personal messages send \"Book club\" \"See you at 7\" --json > /dev/null; then\n case $? in\n 14) echo \"it may have gone — repeat only with the same --operation-id\" ;;\n 4) echo \"run tg personal session start\" ;;\n esac\nfi", - "after": "if tg personal messages send \"Book club\" \"See you at 7\" --json > /dev/null; then\n :\nelse\n send_status=$?\n case \"$send_status\" in\n 14) echo \"it may have gone — repeat only with the same --operation-id\" ;;\n 4) echo \"run tg personal session start\" ;;\n esac\nfi" - } - ], - "ru": [ - { - "before": "if ! tg personal messages send \"Book club\" \"See you at 7\" --json > /dev/null; then\n case $? in\n 14) echo \"it may have gone — repeat only with the same --operation-id\" ;;\n 4) echo \"run tg personal session start\" ;;\n esac\nfi", - "after": "if tg personal messages send \"Book club\" \"See you at 7\" --json > /dev/null; then\n :\nelse\n send_status=$?\n case \"$send_status\" in\n 14) echo \"it may have gone — repeat only with the same --operation-id\" ;;\n 4) echo \"run tg personal session start\" ;;\n esac\nfi" - } - ], - "es": [ - { - "before": "if ! tg personal messages send \"Book club\" \"See you at 7\" --json > /dev/null; then\n case $? in\n 14) echo \"it may have gone — repeat only with the same --operation-id\" ;;\n 4) echo \"run tg personal session start\" ;;\n esac\nfi", - "after": "if tg personal messages send \"Book club\" \"See you at 7\" --json > /dev/null; then\n :\nelse\n send_status=$?\n case \"$send_status\" in\n 14) echo \"it may have gone — repeat only with the same --operation-id\" ;;\n 4) echo \"run tg personal session start\" ;;\n esac\nfi" - } - ] - } - }, { "tool": "tg", "slug": "commands", @@ -58,30 +8,18 @@ { "before": "\njudge a group's new messages and joins by its rules, and act as they allow — as the bot\n", "after": "\njudge a group's new messages by its rules, and act as they allow — as the bot; joins are not judged\n" - }, - { - "before": "**Returns:** act on a group's new messages and joins by its rules, as the bot", - "after": "**Returns:** act on a group's new messages by its rules, as the bot; joins are not judged" } ], "ru": [ { "before": "\njudge a group's new messages and joins by its rules, and act as they allow — as the bot\n", "after": "\njudge a group's new messages by its rules, and act as they allow — as the bot; joins are not judged\n" - }, - { - "before": "**Returns:** act on a group's new messages and joins by its rules, as the bot", - "after": "**Returns:** act on a group's new messages by its rules, as the bot; joins are not judged" } ], "es": [ { "before": "\njudge a group's new messages and joins by its rules, and act as they allow — as the bot\n", "after": "\njudge a group's new messages by its rules, and act as they allow — as the bot; joins are not judged\n" - }, - { - "before": "**Returns:** act on a group's new messages and joins by its rules, as the bot", - "after": "**Returns:** act on a group's new messages by its rules, as the bot; joins are not judged" } ] } @@ -111,31 +49,6 @@ ] } }, - { - "tool": "tg", - "slug": "sessions", - "reason": "Explicit beginner login instructions: distinguish app credentials/account/session, copyable complete commands, QR and phone sequences, code-delivery limitations, named account profiles and inactivity vs overall session lifetime. Verified against TG session.ts, Telegram auth/API documentation and official Desktop inactivity selector. The en text is also in WireCatLabs/tg-cli#922 (2026-11-23). At the next pin bump, move this entry's es/ru replacements into translations/tg/sessions..md and refresh sources.json, then drop the entry; dropping it alone brings the old es/ru text back.", - "replacements": { - "ru": [ - { - "before": "\nПрофиль — отдельный вход со своей сессией, приложением, настройками, получателями и записями запусков. Имя указывается **первым словом**, а не параметром:\n\n", - "after": "\nПрофиль — именованное подключение аккаунта Telegram в CLI. Обычно отдельный профиль создают для каждого номера: например, `personal` для личного аккаунта и `work` для рабочего. У каждого подключения свои сессия входа, данные приложения, настройки, разрешённые получатели и записи запусков.\n\nИмя `work` — выбранная вами метка, а не номер телефона. Чтобы подключить рабочий аккаунт, выполните:\n\n```sh\ntg work session start --app browser\n```\n\nПри регистрации приложения укажите рабочий номер; при QR-входе переключите Telegram на телефоне на рабочий аккаунт. После входа проверьте, какой аккаунт связан с меткой:\n\n```sh\ntg work account show\n```\n\nОдин и тот же аккаунт тоже можно подключить в нескольких профилях; профиль сам по себе не создаёт новый аккаунт Telegram. Имя профиля указывается **первым словом после `tg`**, перед командой:\n\n" - } - ], - "en": [ - { - "before": "\nA profile is a separate login: its own session, app, settings, recipients and runs. It is named by\n**the first word**, not by an option:\n\n", - "after": "\nA profile is a named connection to a Telegram account in the CLI. Usually you use one per phone number: for example `personal` for a personal account and `work` for a work account. Each connection has its own login session, application credentials, settings, allowed recipients and run records.\n\n`work` is a label you choose, not a phone number. Connect a work account with:\n\n```sh\ntg work session start --app browser\n```\n\nUse the work number to register credentials; for QR login, switch Telegram on your phone to the work account. Then check which account the label refers to:\n\n```sh\ntg work account show\n```\n\nYou can also connect the same account in multiple profiles; a profile does not create a Telegram account. The profile name is **the first word after `tg`**, before the command:\n\n" - } - ], - "es": [ - { - "before": "\nUn perfil es una sesión independiente, con su propia aplicación, configuración, destinatarios y ejecuciones. Su nombre es **la primera palabra** del comando, no una opción:\n\n", - "after": "\nUn perfil es una conexión con nombre a una cuenta Telegram en el CLI. Normalmente usas uno por número: `personal` para la cuenta personal y `work` para la cuenta laboral. Cada conexión tiene su sesión, credenciales de aplicación, ajustes, destinatarios permitidos y ejecuciones.\n\n`work` es una etiqueta que eliges, no un número. Conecta la cuenta laboral con:\n\n```sh\ntg work session start --app browser\n```\n\nUsa el número laboral para registrar credenciales; para el QR, cambia Telegram del teléfono a la cuenta laboral. Comprueba después qué cuenta corresponde a la etiqueta:\n\n```sh\ntg work account show\n```\n\nPuedes conectar la misma cuenta en varios perfiles; un perfil no crea una cuenta Telegram. Su nombre es **la primera palabra después de `tg`**, antes del comando:\n\n" - } - ] - } - }, { "tool": "max", "slug": "sessions", @@ -161,31 +74,6 @@ ] } }, - { - "tool": "tg", - "slug": "usage", - "reason": "Distinguish syntax templates from executable commands and link first-login terminology to explicit full commands and the step-by-step login guide. The en text is also in WireCatLabs/tg-cli#922 (2026-11-23). At the next pin bump, move this entry's es/ru replacements into translations/tg/usage..md and refresh sources.json, then drop the entry; dropping it alone brings the old es/ru text back.", - "replacements": { - "en": [ - { - "before": "```sh\ntg [profile] [options] [arguments]\n```", - "after": "The following is a syntax template, not a command to copy. Replace placeholders with the values shown in the examples below.\n\n```text\ntg [profile] [options] [arguments]\n```" - } - ], - "ru": [ - { - "before": "```sh\ntg [profile] [options] [arguments]\n```", - "after": "Ниже схема команды, а не команда для копирования. Вместо обозначений в скобках подставляют значения, как в примерах ниже.\n\n```text\ntg [profile] [options] [arguments]\n```" - } - ], - "es": [ - { - "before": "```sh\ntg [profile] [options] [arguments]\n```", - "after": "Esto es una plantilla de sintaxis, no un comando para copiar. Sustituye los marcadores por los valores de los ejemplos siguientes.\n\n```text\ntg [profile] [options] [arguments]\n```" - } - ] - } - }, { "tool": "max", "slug": "usage", @@ -413,56 +301,6 @@ ] } }, - { - "tool": "tg", - "slug": "usage", - "reason": "Scope repeat safety to topic edits and ordering; released guide explicitly forbids blindly replaying topic creation after unknown outcome. The en text is also in WireCatLabs/tg-cli#922 (2026-11-23). At the next pin bump, move this entry's es/ru replacements into translations/tg/usage..md and refresh sources.json, then drop the entry; dropping it alone brings the old es/ru text back.", - "replacements": { - "en": [ - { - "before": "Repeating any of these is safe.", - "after": "Repeating topic edits and ordering is safe. After an unknown creation outcome, inspect the topic list before creating again." - } - ], - "ru": [ - { - "before": "Повторение любого из этих действий безопасно.", - "after": "Правку и порядок тем можно безопасно повторять. Если исход создания неизвестен, сначала проверьте список тем, прежде чем создавать снова." - } - ], - "es": [ - { - "before": "Las demás escrituras (fijar, reaccionar, marcar como leído, borrar, votar, carpetas, contactos) terminan igual con el código de salida `14` cuando Telegram no responde; el mensaje indica si es seguro repetir.", - "after": "Es seguro repetir las ediciones y el orden de temas. Tras una creación de resultado desconocido, comprueba la lista de temas antes de crear de nuevo." - } - ] - } - }, - { - "tool": "tg", - "slug": "groups", - "reason": "Separate mutually exclusive approval flags into concrete command examples; a pipe inside a flag is illustrative shorthand, not executable syntax. tg refuses --approval together with --max-uses, so the limit goes with --no-approval. Topic search moved to `tg search topics`; `tg topics search` no longer exists. The en text is also in WireCatLabs/tg-cli#922 (2026-11-23). At the next pin bump, move this entry's es/ru replacements into translations/tg/groups..md and refresh sources.json, then drop the entry; dropping it alone brings the old es/ru text back.", - "replacements": { - "en": [ - { - "before": "`tg personal chats links update --approval\\|--no-approval --expire-time