better-tg-cli 0.27.0 → 0.29.0
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.md +53 -4
- package/README.ru.md +53 -4
- package/dist/telegram.mjs +1 -1
- package/package.json +2 -2
- package/skills/better-tg-cli/SKILL.md +1 -1
- package/skills/better-tg-cli/reference.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-tg-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Telegram for your terminal and your AI agents: read, search, send and press bot buttons on your own account. MCP server included.",
|
|
5
5
|
"mcpName": "io.github.TheVilfer/better-tg-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"provenance": true
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
|
-
"build": "node scripts/gen-version.mjs && tsc --noEmit &&
|
|
62
|
+
"build": "node scripts/gen-version.mjs && tsc --noEmit && node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && bun scripts/bundle.mjs node",
|
|
63
63
|
"prepublishOnly": "npm run build",
|
|
64
64
|
"dev": "scripts/tg-dev",
|
|
65
65
|
"dev:node": "TG_PROFILE=${TG_PROFILE-dev} TG_NO_UPDATE_CHECK=1 tsx src/index.ts",
|
|
@@ -13,7 +13,7 @@ description: Telegram on the user's own account through the `telegram` CLI (bett
|
|
|
13
13
|
telegram help-all -g read >/dev/null && telegram check
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
- **`telegram` is missing, or it has no `help-all`.** A different program is installed under that name. Ask the user before installing anything, then run `brew install thevilfer/tap/better-tg-cli` (macOS or Linux) or `npm install -g better-tg-cli` (Node 20 or newer). Never install `@skillhq/telegram`: it is an old build, and bot replies come back as `(no text)`.
|
|
16
|
+
- **`telegram` is missing, or it has no `help-all`.** A different program is installed under that name. Ask the user before installing anything, then run `brew install thevilfer/tap/better-tg-cli` (macOS or Linux), `scoop install better-tg-cli` after `scoop bucket add thevilfer https://github.com/TheVilfer/scoop-bucket` (Windows), or `npm install -g better-tg-cli` (Node 20 or newer, any OS). Never install `@skillhq/telegram`: it is an old build, and bot replies come back as `(no text)`.
|
|
17
17
|
- **"Not configured" or "Not authenticated".** Run `telegram onboard --json` (in the background if your tool times out before ~15 minutes). It opens a page on 127.0.0.1 where the user gets an invite or enters their own API keys, scans a QR code and types their 2FA password. You never see any of that. Tell the user the page is open (relay the `url` event if the browser didn't open), wait for the `done` event, then confirm with `telegram whoami`. Never run `telegram auth` yourself. Never ask for a login code, 2FA password, invite token or api_hash in chat, and never fill in the onboarding page yourself. If the user is on SSH or `onboard` can't open a page, ask them to run `telegram auth --qr` in their own terminal.
|
|
18
18
|
|
|
19
19
|
Before you use an unfamiliar flag, run `telegram help-all -g <word>`. It is generated from the code, so it is always current. For behaviour details (threads, bot buttons, sync, JSON shapes, errors), read `reference.md` next to this file.
|
|
@@ -152,7 +152,7 @@ matches titles.
|
|
|
152
152
|
interactive, so never run it for them. `--qr` logs in by scanning a QR code in the Telegram app instead of
|
|
153
153
|
typing a code (`TG_QR_INVERT=1` for light terminals).
|
|
154
154
|
|
|
155
|
-
- `command not found: telegram`: run `brew install thevilfer/tap/better-tg-cli` or `npm install -g better-tg-cli`, or build this folder (`npm install && npm run build && npm install -g .`, needs Bun)
|
|
155
|
+
- `command not found: telegram`: run `brew install thevilfer/tap/better-tg-cli`, `scoop install better-tg-cli` (Windows, after `scoop bucket add thevilfer https://github.com/TheVilfer/scoop-bucket`) or `npm install -g better-tg-cli`, or build this folder (`npm install && npm run build && npm install -g .`, needs Bun)
|
|
156
156
|
`telegram update` upgrades an existing install (brew, npm or git checkout); `update --check` only reports.
|
|
157
157
|
`telegram skill install|status|uninstall [-a <agent>...]` copies this skill into coding agents' global
|
|
158
158
|
skills folders; only run it when the user asks.
|