You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(chat): Extend chat delete to remove a user DM from the chat list
`tg chat delete <ref>` previously only deleted supergroups/channels via
channels.deleteChannel and errored on anything else. Now a user/bot ref
removes that conversation from the account via messages.deleteHistory, so a
DM (e.g. a blocked spammer's) can be cleared from the chat list. --revoke
also deletes the history on the other side. Basic groups stay unsupported
(use `tg chat leave`).
|`tg chat delete <ref>`| Delete a supergroup/channel (irreversible), or remove a user DM from your chat list (`--revoke` also deletes it on the other side). Prompts unless `--yes`. |
|`tg chat topic list <ref>`| List a forum supergroup's topics. `--search` filters by title; `--limit` caps results (single page only, ~100 max — pagination not implemented). |
95
95
|`tg chat topic create <ref> <title>`| Create a topic. `--icon-color`, `--icon-emoji`, and `--random-id` (idempotent retry). |
return output.PeerRef{}, fmt.Errorf("%w: only channels, supergroups, and user DMs can be deleted by ref (use `tg chat leave` for basic groups)", command.ErrUnsupported)
0 commit comments