better-tg-cli 0.37.0-rc.1 → 0.38.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 CHANGED
@@ -204,16 +204,46 @@ telegram get "Chat" 812 813 # exact messages by ID
204
204
  telegram download "Chat" 812 # save the attached file
205
205
  telegram sync --chat "Chat" --output ./export --resume # incremental markdown export
206
206
 
207
+ telegram drafts # saved but unsent drafts
208
+ telegram admin-log "Team" # a group's recent admin actions
209
+ telegram profile-photos @alice # a user's profile photos
210
+ telegram read @channel -n 20 --full # every message stat (views, reactions, flags, media)
211
+ telegram stats "Mock News" --graphs # full channel stats + growth graphs; --message <id> / --story <id> too
212
+ telegram sessions ; telegram stars # active login sessions; Telegram Stars balance & transactions
213
+ telegram invites "Team" --requests # a chat's invite links, or its pending join requests
214
+
207
215
  telegram write-access on --for 1h # a human confirms this
208
216
  telegram send @alice "on my way"
209
217
  printf '%s' "$text" | telegram send @alice - # long or multi-line text: from stdin, no quoting problems
210
218
  telegram reply "Chat" 812 "on it" --silent
211
219
  telegram click @SomeBot 4410 "Settings" # press an inline button
220
+ telegram pin-chat @alice # pin a chat; mark-unread / delete-dialog too
221
+ telegram edit-permissions "Team" @alice --mute --until 1d # restrict a member; --lift to undo
222
+ telegram topic create "Dev Forum" "Release 2.0" # forum topics: create/edit/close/reopen/pin
223
+
224
+ telegram api messages.GetAllDrafts # call any raw TL method (full API reachability)
225
+ telegram api channels.GetAdminLog --params '{"channel":{"_chat":"Team"},"limit":20,"q":""}'
226
+ telegram messages get-history --peer @durov --limit 10 # or a typed command per TL method
227
+ telegram account get-authorizations # telegram <namespace> --help lists a namespace
228
+ telegram help get-config # telegram ping, telegram req-pq, … for root methods
212
229
  ```
213
230
 
214
- Read commands take `--json`, and some also take `--markdown`. See all commands with
215
- `telegram help-all`. [reference.md](skills/better-tg-cli/reference.md) covers the behaviour that the flag list can't
216
- explain: output shapes, threads, bot buttons, admin commands and troubleshooting.
231
+ Read commands take `--json`, and some also take `--markdown`. `read`/`get`/`search`/`inbox`/`watch`
232
+ take `--full` (alias `--stats`) to include every per-message statistic (views, forwards, full
233
+ reaction breakdown, comments, flags, rich media metadata) — default output is unchanged without it.
234
+ See all commands with `telegram help-all`. [reference.md](skills/better-tg-cli/reference.md) covers the behaviour that the flag list can't
235
+ explain: output shapes, threads, bot buttons, admin commands and troubleshooting. The generic
236
+ `telegram api <namespace.Method>` reaches 100% of the Telegram client API, and every one of the 823
237
+ TL methods also has its own typed top-level command `telegram <namespace> <method>` (root methods
238
+ like `telegram ping` too), generated from the schema with the same refusals and read/write guard as
239
+ `api`. Where a namespace name collides with a curated command (`stats`, `stories`, `contacts`,
240
+ `auth`, `folders`, `help`), the curated command is unchanged and the generated methods attach as
241
+ subcommands, picked only when the first word is exactly a method name (quote or use an ID for a
242
+ chat literally named like a method). Each method carries its official description and per-parameter
243
+ docs (from core.telegram.org): `telegram <namespace> --help` lists a namespace's methods marked
244
+ `[read]`/`[write]`/`[refused]`, `telegram <namespace> <method> --help` shows params, an example and
245
+ the docs link, and `telegram schema [<ns> [<method>]]` prints the same as JSON.
246
+ [docs/api-coverage.md](docs/api-coverage.md) tracks coverage against the schema and Telethon.
217
247
 
218
248
  ## MCP server
219
249