feat(telegram): add deleteMessage action#903
Closed
sleontenko wants to merge 1 commit intoopenclaw:mainfrom
Closed
feat(telegram): add deleteMessage action#903sleontenko wants to merge 1 commit intoopenclaw:mainfrom
sleontenko wants to merge 1 commit intoopenclaw:mainfrom
Conversation
ea4433a to
8788427
Compare
Add ability to delete messages in Telegram chats via the message tool. Changes: - Add deleteMessageTelegram function in send.ts - Add deleteMessage action handler in telegram-actions.ts - Add delete action support in telegram message plugin adapter - Add deleteMessage to TelegramActionConfig type - Update message tool description to mention delete action Usage: - Via message tool: action="delete", chatId, messageId - Can be disabled via channels.telegram.actions.deleteMessage=false Limitations (Telegram API): - Bot can delete its own messages in any chat - Bot can delete others' messages only if admin with "Delete Messages" - Messages older than 48h in groups may fail to delete
8788427 to
bd2ddc0
Compare
steipete
added a commit
that referenced
this pull request
Jan 15, 2026
…leontenko Co-authored-by: Stan <sleontenko@users.noreply.github.com>
Contributor
|
Landed via temp branch + rebase onto main, then fast-forwarded and pushed. Changes:
Commits:
Tests:
Thanks @sleontenko! |
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…hanks @sleontenko Co-authored-by: Stan <sleontenko@users.noreply.github.com>
heatherstew44-maker
pushed a commit
to heatherstew44-maker/openclaw
that referenced
this pull request
Mar 8, 2026
…ermanently invisible (openclaw#903) * tray fix * format * Update lib.rs * Update lib.rs
Fato07
pushed a commit
to Fato07/elav
that referenced
this pull request
Mar 26, 2026
Refine heartbeatService to only target runs stuck in "running" state
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
…hanks @sleontenko Co-authored-by: Stan <sleontenko@users.noreply.github.com>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
…hanks @sleontenko Co-authored-by: Stan <sleontenko@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
src/telegram/send.ts- AdddeleteMessageTelegramfunctionsrc/agents/tools/telegram-actions.ts- Add deleteMessage action handlersrc/channels/plugins/actions/telegram.ts- Add delete action to message pluginsrc/config/types.telegram.ts- AdddeleteMessageto TelegramActionConfigsrc/agents/tools/message-tool.ts- Update description to mention deleteUsage
{ "tool": "message", "action": "delete", "chatId": "-1001234567890", "messageId": "12345" }Can be disabled via config:
{ "channels": { "telegram": { "actions": { "deleteMessage": false } } } }Telegram API Limitations
Test plan