Skip to content

feat: add edit and delete commands#2

Merged
jackwener merged 3 commits intopublic-clis:mainfrom
jgalea:feature/edit-delete
Mar 15, 2026
Merged

feat: add edit and delete commands#2
jackwener merged 3 commits intopublic-clis:mainfrom
jgalea:feature/edit-delete

Conversation

@jgalea
Copy link
Copy Markdown
Contributor

@jgalea jgalea commented Mar 15, 2026

Summary

  • Add tg edit CHAT MSG_ID NEW_TEXT to edit previously sent messages
  • Add tg delete CHAT MSG_ID [MSG_ID ...] to delete one or more messages
  • Both follow the existing structured output pattern (--json/--yaml)

Usage

# Edit a message
tg edit "My Chat" 12345 "Updated text"

# Delete messages
tg delete "My Chat" 12345 12346

jgalea added 3 commits March 15, 2026 02:42
Add `tg edit CHAT MSG_ID NEW_TEXT` to edit previously sent messages
and `tg delete CHAT MSG_ID [MSG_ID ...]` to delete one or more messages.

Both commands follow the existing structured output pattern (--json/--yaml).

Co-Authored-By: Jean Galea <1651502+jgalea@users.noreply.github.com>
Allows disabling Telegram's automatic link preview card
when sending or editing messages containing URLs.

Co-Authored-By: Jean Galea <1651502+jgalea@users.noreply.github.com>
Co-Authored-By: Jean Galea <1651502+jgalea@users.noreply.github.com>
@jackwener jackwener merged commit 60d1a53 into public-clis:main Mar 15, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants