better-tg-cli 0.38.0 → 0.38.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-tg-cli",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
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": [
@@ -74,6 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^26.6.2",
77
+ "@types/ws": "^8.18.2",
77
78
  "@typescript/native": "npm:typescript@^7.0.2",
78
79
  "big-integer": "^1.6.52",
79
80
  "commander": "^15.0.0",
@@ -81,6 +82,7 @@
81
82
  "tsx": "^4.23.15",
82
83
  "typescript": "npm:@typescript/typescript6@^6.0.2",
83
84
  "uqr": "^0.1.3",
84
- "vitest": "^5.0.2"
85
+ "vitest": "^5.0.2",
86
+ "ws": "^8.22.1"
85
87
  }
86
88
  }
@@ -392,6 +392,10 @@ matches titles.
392
392
  `Telegram rate limit on <method>: waiting Ns`. Longer waits fail with the wait in the error
393
393
  message. `TG_FLOOD_WAIT_MAX=<seconds>` changes the limit: `0` fails fast, a larger value suits
394
394
  long `sync` runs. Don't retry in a loop, because Telegram extends the ban.
395
+ - `NetSocket was closed` or timeouts while connecting: the network blocks Telegram's TCP transport
396
+ (common on cloud agent computers that allow only HTTPS). The CLI retries over WebSocket
397
+ (`wss://*.web.telegram.org`) by itself and saves `transport: "wss"` for the profile; stderr says
398
+ so. Force one with `TG_TRANSPORT=wss` (or `tcp`).
395
399
  - `CHANNELS_TOO_MUCH` on `join`: the account hit Telegram's channel limit, so leave some first.
396
400
  - `Could not find the input entity`: the ID is not in your dialogs. Use `@username` or open the
397
401
  chat first.