better-tg-cli 0.36.0 → 0.37.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.es.md CHANGED
@@ -169,10 +169,10 @@ npx skills add TheVilfer/better-tg-cli -g -a claude-code -a codex -y
169
169
  ## Inicio de sesión
170
170
 
171
171
  **A través de tu agente** (lo más fácil): pídele que configure Telegram o ejecuta tú mismo
172
- `telegram onboard`. Abre una página en 127.0.0.1 donde obtienes una invitación de
172
+ `telegram onboard`. Abre una página en 127.0.0.1 donde obtienes una clave de acceso de
173
173
  [better-tg-cli.com](https://better-tg-cli.com) (vuelve sola a la página) o introduces tus propias
174
174
  claves, escaneas un código QR y escribes tu contraseña de 2FA. El agente solo lanza el comando y
175
- espera: nunca ve la invitación, el código QR ni la contraseña. La página solo responde en una ruta
175
+ espera: nunca ve la clave de acceso, el código QR ni la contraseña. La página solo responde en una ruta
176
176
  secreta aleatoria y se cierra cuando terminas.
177
177
 
178
178
  **Con tus propias claves de API** (la opción por defecto):
@@ -183,13 +183,14 @@ secreta aleatoria y se cierra cuando terminas.
183
183
  inicio de sesión. Si el QR no se escanea con un tema claro del terminal, ejecútalo con
184
184
  `TG_QR_INVERT=1`.
185
185
 
186
- **Con una invitación.** Con un token de invitación no necesitas tus propias claves. Consigue uno en
187
- [better-tg-cli.com](https://better-tg-cli.com) (confirma tu correo con un código; la página está en
188
- ruso y también tiene una guía de instalación) o pídeselo al mantenedor.
189
- Ejecuta `telegram auth --invite --qr` y pega el token, o pásalo como `TG_INVITE=…` o `--invite -`. El
190
- servicio de invitaciones (`broker/`) entrega las claves de la aplicación una sola vez, solo para este
191
- inicio de sesión. El `api_hash` no se guarda en tu máquina. Las invitaciones son personales, permiten
192
- un número limitado de inicios de sesión y pueden revocarse.
186
+ **Con una clave de acceso.** Con una clave de acceso no necesitas tus propias claves de API. Consigue
187
+ una en [better-tg-cli.com](https://better-tg-cli.com/login) (confirma tu correo con un código; la
188
+ página también tiene una guía de instalación) o pídesela al mantenedor.
189
+ Ejecuta `telegram auth --login-key --qr` y pega la clave, o pásala como `TG_LOGIN_KEY=…` o
190
+ `--login-key -`. El servicio de acceso (`broker/`) entrega las claves de la aplicación una sola vez,
191
+ solo para este inicio de sesión. El `api_hash` no se guarda en tu máquina. Las claves de acceso son
192
+ personales, sirven en hasta 3 equipos y pueden revocarse. Antes de la 0.37 la clave se llamaba
193
+ invitación: `--invite` y `TG_INVITE` siguen funcionando.
193
194
 
194
195
  La sesión se guarda en el Keychain de macOS (servicio `tg-cli`) o en 1Password con
195
196
  `--op-vault <vault>`. `telegram logout` la elimina. En Linux va al Secret Service (GNOME Keyring,
@@ -301,10 +302,10 @@ Solo después de que actives la escritura. `telegram write-access on` te pide qu
301
302
  No. `read`, `inbox` y `search` dejan los chats sin leer. Solo `telegram mark-read` los marca.
302
303
 
303
304
  **¿Necesito mis propias claves de API?**
304
- Sí, de [my.telegram.org/apps](https://my.telegram.org/apps). Son gratuitas y se crean en un minuto. Con una invitación de [better-tg-cli.com](https://better-tg-cli.com), `telegram auth --invite --qr` te permite iniciar sesión sin ellas.
305
+ Sí, de [my.telegram.org/apps](https://my.telegram.org/apps). Son gratuitas y se crean en un minuto. Con una clave de acceso de [better-tg-cli.com](https://better-tg-cli.com/login), `telegram auth --login-key --qr` te permite iniciar sesión sin ellas.
305
306
 
306
307
  **¿Dónde se guarda mi sesión y quién puede ver mis mensajes?**
307
- La sesión está en el Keychain de macOS, en el Secret Service de Linux o en 1Password. El CLI habla directamente con Telegram y no tiene analíticas. Los únicos otros hosts son npm, para una comprobación diaria de versión, y el servicio de invitaciones al iniciar sesión. Consulta [PRIVACY.md](PRIVACY.md).
308
+ La sesión está en el Keychain de macOS, en el Secret Service de Linux o en 1Password. El CLI habla directamente con Telegram y no tiene analíticas. Los únicos otros hosts son npm, para una comprobación diaria de versión, y el servicio de acceso cuando inicias sesión con una clave de acceso. Consulta [PRIVACY.md](PRIVACY.md).
308
309
 
309
310
  **¿Puedo usar varias cuentas?**
310
311
  Sí, con `TG_PROFILE`: cada perfil tiene su propio inicio de sesión, configuración y elementos del Keychain, por ejemplo `TG_PROFILE=work telegram auth --qr`. El cambio de cuenta propiamente dicho se sigue en [#5](https://github.com/TheVilfer/better-tg-cli/issues/5).
@@ -349,7 +350,7 @@ MCP Registry. Consulta
349
350
 
350
351
  ## Privacidad
351
352
 
352
- Sin analíticas. El único servicio que operamos es el broker de invitaciones opcional, que nunca ve
353
+ Sin analíticas. El único servicio que operamos es el servicio de acceso opcional, que nunca ve
353
354
  tus mensajes ni tu sesión. Consulta [PRIVACY.md](PRIVACY.md) para conocer los tres hosts con los que
354
355
  habla el CLI y lo que guarda localmente.
355
356
 
@@ -363,8 +364,8 @@ Hasta entonces, el `telegram.exe` de Windows no está firmado; los binarios de m
363
364
 
364
365
  - Committers y revisores: [@TheVilfer](https://github.com/TheVilfer)
365
366
  - Aprobadores (cada release firmada): [@TheVilfer](https://github.com/TheVilfer)
366
- - Política de privacidad: [PRIVACY.md](PRIVACY.md). El CLI solo habla con Telegram, con el broker de
367
- invitaciones cuando inicias sesión con una invitación y con el registro de npm para una
367
+ - Política de privacidad: [PRIVACY.md](PRIVACY.md). El CLI solo habla con Telegram, con el servicio de
368
+ acceso cuando inicias sesión con una clave de acceso y con el registro de npm para una
368
369
  comprobación diaria de actualizaciones en un terminal (se desactiva con `TG_NO_UPDATE_CHECK=1`).
369
370
 
370
371
  ## Licencia
package/README.md CHANGED
@@ -164,9 +164,9 @@ npx skills add TheVilfer/better-tg-cli -g -a claude-code -a codex -y
164
164
  ## Log in
165
165
 
166
166
  **Through your agent** (easiest): ask it to set up Telegram, or run `telegram onboard` yourself. It
167
- opens a page on 127.0.0.1 where you get an invite from [better-tg-cli.com](https://better-tg-cli.com)
167
+ opens a page on 127.0.0.1 where you get a login key from [better-tg-cli.com](https://better-tg-cli.com)
168
168
  (it comes back to the page by itself) or enter your own keys, scan a QR code and type your 2FA
169
- password. The agent only starts the command and waits: it never sees the invite, the QR code or the
169
+ password. The agent only starts the command and waits: it never sees the login key, the QR code or the
170
170
  password. The page answers only on a random secret path and closes when you're done.
171
171
 
172
172
  **With your own API keys** (the default):
@@ -176,12 +176,13 @@ password. The page answers only on a random secret path and closes when you're d
176
176
  `telegram auth` asks for your phone number and a login code instead. If the QR won't scan on a
177
177
  light terminal theme, run with `TG_QR_INVERT=1`.
178
178
 
179
- **With an invite.** You don't need your own keys with an invite token. Get one at
180
- [better-tg-cli.com](https://better-tg-cli.com) (confirm your email with a code; the page is in Russian
181
- and also has an install guide), or from the maintainer.
182
- Run `telegram auth --invite --qr` and paste the token, or pass it as `TG_INVITE=…` or `--invite -`. The
183
- invite service (`broker/`) hands out the app's keys once, for this login only. The `api_hash` is not
184
- kept on your machine. Invites are personal, allow a limited number of logins, and can be revoked.
179
+ **With a login key.** You don't need your own keys with a login key. Get one at
180
+ [better-tg-cli.com](https://better-tg-cli.com/login) (confirm your email with a code; the page also
181
+ has an install guide), or from the maintainer.
182
+ Run `telegram auth --login-key --qr` and paste the key, or pass it as `TG_LOGIN_KEY=…` or
183
+ `--login-key -`. The login service (`broker/`) hands out the app's keys once, for this login only.
184
+ The `api_hash` is not kept on your machine. Login keys are personal, work on up to 3 computers, and
185
+ can be revoked. Before 0.37 the key was called an invite: `--invite` and `TG_INVITE` still work.
185
186
 
186
187
  The session is stored in the macOS Keychain (service `tg-cli`), or in 1Password with
187
188
  `--op-vault <vault>`. `telegram logout` removes it. On Linux it goes to the Secret Service (GNOME
@@ -290,10 +291,10 @@ Only after you turn writes on. `telegram write-access on` asks you to confirm in
290
291
  No. `read`, `inbox` and `search` leave chats unread. Only `telegram mark-read` marks them.
291
292
 
292
293
  **Do I need my own API keys?**
293
- Yes, from [my.telegram.org/apps](https://my.telegram.org/apps). They are free and take a minute to create. With an invite from [better-tg-cli.com](https://better-tg-cli.com), `telegram auth --invite --qr` logs you in without them.
294
+ Yes, from [my.telegram.org/apps](https://my.telegram.org/apps). They are free and take a minute to create. With a login key from [better-tg-cli.com](https://better-tg-cli.com/login), `telegram auth --login-key --qr` logs you in without them.
294
295
 
295
296
  **Where is my session stored, and who can see my messages?**
296
- The session is in the macOS Keychain, the Linux Secret Service or 1Password. The CLI talks to Telegram directly and has no analytics. The only other hosts are npm for a daily version check and the invite service at login. See [PRIVACY.md](PRIVACY.md).
297
+ The session is in the macOS Keychain, the Linux Secret Service or 1Password. The CLI talks to Telegram directly and has no analytics. The only other hosts are npm for a daily version check and the login service when you log in with a login key. See [PRIVACY.md](PRIVACY.md).
297
298
 
298
299
  **Can I use several accounts?**
299
300
  Yes, with `TG_PROFILE`: each profile has its own login, config and Keychain items, for example `TG_PROFILE=work telegram auth --qr`. Switching accounts properly is tracked in [#5](https://github.com/TheVilfer/better-tg-cli/issues/5).
@@ -337,7 +338,7 @@ MCP Registry. See
337
338
 
338
339
  ## Privacy
339
340
 
340
- No analytics. The only service we run is the optional invite broker, which never sees your
341
+ No analytics. The only service we run is the optional login service, which never sees your
341
342
  messages or session. See [PRIVACY.md](PRIVACY.md) for the three hosts the CLI talks to and what it
342
343
  stores locally.
343
344
 
@@ -351,8 +352,8 @@ Until then the Windows `telegram.exe` is unsigned; macOS binaries are ad-hoc sig
351
352
 
352
353
  - Committers and reviewers: [@TheVilfer](https://github.com/TheVilfer)
353
354
  - Approvers (each signed release): [@TheVilfer](https://github.com/TheVilfer)
354
- - Privacy policy: [PRIVACY.md](PRIVACY.md). The CLI talks only to Telegram, to the invite broker
355
- when you log in with an invite, and to the npm registry for a daily update check in a terminal
355
+ - Privacy policy: [PRIVACY.md](PRIVACY.md). The CLI talks only to Telegram, to the login service
356
+ when you log in with a login key, and to the npm registry for a daily update check in a terminal
356
357
  (off with `TG_NO_UPDATE_CHECK=1`).
357
358
 
358
359
  ## License
package/README.ru.md CHANGED
@@ -163,9 +163,9 @@ npx skills add TheVilfer/better-tg-cli -g -a claude-code -a codex -y
163
163
  ## Вход
164
164
 
165
165
  **Через агента** (проще всего): попросите его подключить Telegram или запустите `telegram onboard`
166
- сами. Откроется страница на 127.0.0.1: там вы получаете инвайт на [better-tg-cli.com](https://better-tg-cli.com)
166
+ сами. Откроется страница на 127.0.0.1: там вы получаете ключ входа на [better-tg-cli.com](https://better-tg-cli.com)
167
167
  (он сам возвращается на страницу) или вводите свои ключи, сканируете QR и вводите пароль 2FA. Агент
168
- только запускает команду и ждёт: ни инвайт, ни QR, ни пароль он не видит. Страница отвечает только
168
+ только запускает команду и ждёт: ни ключ входа, ни QR, ни пароль он не видит. Страница отвечает только
169
169
  по случайному секретному адресу и закрывается после входа.
170
170
 
171
171
  **Со своими API-ключами** (основной способ):
@@ -175,13 +175,13 @@ npx skills add TheVilfer/better-tg-cli -g -a claude-code -a codex -y
175
175
  Обычный `telegram auth` вместо QR спрашивает номер телефона и код. Если в светлой теме
176
176
  терминала QR не сканируется, запустите с `TG_QR_INVERT=1`.
177
177
 
178
- **По инвайту.** С инвайт-токеном свои ключи не нужны. Получите его на
179
- [better-tg-cli.com](https://better-tg-cli.com) (почта подтверждается кодом, там же гайд по установке)
180
- или у мейнтейнера. Запустите
181
- `telegram auth --invite --qr` и вставьте токен. Его также можно передать через `TG_INVITE=…` или
182
- `--invite -`. Сервис инвайтов (`broker/`) выдаёт ключи приложения один раз, только для этого входа.
183
- `api_hash` на вашей машине не сохраняется. Инвайты персональные, число входов по ним ограничено, и
184
- их можно отозвать.
178
+ **По ключу входа.** С ключом входа свои API-ключи не нужны. Получите его на
179
+ [better-tg-cli.com](https://better-tg-cli.com/login) (почта подтверждается кодом, там же гайд по
180
+ установке) или у мейнтейнера. Запустите `telegram auth --login-key --qr` и вставьте ключ. Его также
181
+ можно передать через `TG_LOGIN_KEY=…` или `--login-key -`. Сервис входа (`broker/`) выдаёт ключи
182
+ приложения один раз, только для этого входа. `api_hash` на вашей машине не сохраняется. Ключи входа
183
+ персональные, работают на 3 компьютерах, и их можно отозвать. До версии 0.37 ключ назывался
184
+ инвайтом: `--invite` и `TG_INVITE` по-прежнему работают.
185
185
 
186
186
  Сессия хранится в Keychain macOS (сервис `tg-cli`) или в 1Password с флагом `--op-vault <vault>`.
187
187
  `telegram logout` её удаляет. На Linux сессия хранится в Secret Service (GNOME Keyring, KWallet,
@@ -291,10 +291,10 @@ tailscale funnel --bg 8787 # или: cloudflared tunnel --url h
291
291
  Нет. `read`, `inbox` и `search` оставляют чаты непрочитанными. Отмечает только `telegram mark-read`.
292
292
 
293
293
  **Нужны ли свои API-ключи?**
294
- Да, с [my.telegram.org/apps](https://my.telegram.org/apps). Они бесплатные, их создание занимает минуту. С инвайтом с [better-tg-cli.com](https://better-tg-cli.com) `telegram auth --invite --qr` войдёт без своих ключей.
294
+ Да, с [my.telegram.org/apps](https://my.telegram.org/apps). Они бесплатные, их создание занимает минуту. С ключом входа с [better-tg-cli.com](https://better-tg-cli.com/login) `telegram auth --login-key --qr` войдёт без своих ключей.
295
295
 
296
296
  **Где хранится сессия и кто видит мои сообщения?**
297
- Сессия лежит в Keychain macOS, в Secret Service на Linux или в 1Password. CLI общается с Telegram напрямую, аналитики нет. Кроме Telegram, он ходит только в npm (раз в день за номером версии) и в сервис инвайтов при входе. Подробнее в [PRIVACY.md](PRIVACY.md).
297
+ Сессия лежит в Keychain macOS, в Secret Service на Linux или в 1Password. CLI общается с Telegram напрямую, аналитики нет. Кроме Telegram, он ходит только в npm (раз в день за номером версии) и в сервис входа, если вы входите по ключу входа. Подробнее в [PRIVACY.md](PRIVACY.md).
298
298
 
299
299
  **Можно ли несколько аккаунтов?**
300
300
  Да, через `TG_PROFILE`: у каждого профиля свой вход, конфиг и записи в Keychain, например `TG_PROFILE=work telegram auth --qr`. Удобное переключение аккаунтов — в [#5](https://github.com/TheVilfer/better-tg-cli/issues/5).
@@ -337,7 +337,7 @@ GitHub Releases, в npm (trusted publishing с provenance), в Homebrew-тап
337
337
 
338
338
  ## Приватность
339
339
 
340
- Аналитики нет. Единственный наш сервис — необязательный брокер инвайтов, и он не видит ни ваших
340
+ Аналитики нет. Единственный наш сервис — необязательный сервис входа, и он не видит ни ваших
341
341
  сообщений, ни сессии. В [PRIVACY.md](PRIVACY.md) перечислены три хоста, с которыми общается CLI,
342
342
  и то, что он хранит локально.
343
343
 
@@ -351,8 +351,8 @@ by [SignPath.io](https://about.signpath.io), certificate by [SignPath Foundation
351
351
 
352
352
  - Коммиттеры и ревьюеры: [@TheVilfer](https://github.com/TheVilfer)
353
353
  - Утверждают каждый подписанный релиз: [@TheVilfer](https://github.com/TheVilfer)
354
- - Политика приватности: [PRIVACY.md](PRIVACY.md). CLI обращается только к Telegram, к брокеру
355
- инвайтов при входе по инвайту и раз в день к npm-реестру за номером версии, если запущен в
354
+ - Политика приватности: [PRIVACY.md](PRIVACY.md). CLI обращается только к Telegram, к сервису
355
+ входа при входе по ключу входа и раз в день к npm-реестру за номером версии, если запущен в
356
356
  терминале (отключается `TG_NO_UPDATE_CHECK=1`).
357
357
 
358
358
  ## Лицензия