better-tg-cli 0.17.0 → 0.19.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 +9 -0
- package/dist/telegram.mjs +1 -1
- package/package.json +8 -2
- package/reference.md +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-tg-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Unofficial agent-friendly Telegram client for the command line (MTProto, layer 229)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/telegram.mjs",
|
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "node scripts/gen-version.mjs && tsc --noEmit && rm -rf dist && bun scripts/bundle.mjs node",
|
|
12
12
|
"prepublishOnly": "npm run build",
|
|
13
|
+
"dev": "scripts/tg-dev",
|
|
14
|
+
"dev:node": "TG_PROFILE=${TG_PROFILE-dev} TG_NO_UPDATE_CHECK=1 tsx src/index.ts",
|
|
15
|
+
"dev:debug": "TG_PROFILE=${TG_PROFILE-dev} TG_NO_UPDATE_CHECK=1 tsx --inspect-brk src/index.ts",
|
|
16
|
+
"dev:dist": "npm run build && TG_PROFILE=${TG_PROFILE-dev} TG_NO_UPDATE_CHECK=1 node dist/telegram.mjs",
|
|
13
17
|
"test": "vitest run",
|
|
14
18
|
"test:watch": "vitest",
|
|
15
19
|
"pretest": "node scripts/gen-version.mjs",
|
|
16
|
-
"typecheck": "tsc --noEmit"
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"typecheck:watch": "tsc --noEmit --watch --preserveWatchOutput"
|
|
17
22
|
},
|
|
18
23
|
"keywords": [
|
|
19
24
|
"telegram",
|
|
@@ -39,6 +44,7 @@
|
|
|
39
44
|
"big-integer": "^1.6.52",
|
|
40
45
|
"commander": "^14.0.0",
|
|
41
46
|
"teleproto": "^1.229.0",
|
|
47
|
+
"tsx": "^4.23.15",
|
|
42
48
|
"typescript": "^5.7.0",
|
|
43
49
|
"vitest": "^5.0.2"
|
|
44
50
|
},
|
package/reference.md
CHANGED
|
@@ -115,6 +115,7 @@ matches titles: exact first, then substring. For writes, prefer an ID or @userna
|
|
|
115
115
|
it needs a phone code and 2FA, so never run it for them.
|
|
116
116
|
|
|
117
117
|
- `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)
|
|
118
|
+
`telegram update` upgrades an existing install (brew, npm or git checkout); `update --check` only reports.
|
|
118
119
|
Never install `@skillhq/telegram` from npm: it is the old GramJS build, and bot replies show
|
|
119
120
|
as `(no text)`.
|
|
120
121
|
- `Write access is disabled`: the account is read-only on purpose, or a `--for` window expired. Ask
|