openclaw-matrix-multiaccounts/src/agents/tools
sleontenko 83a25d26fc feat(telegram): add deleteMessage action
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
2026-01-15 00:29:53 +00:00
..
agent-step.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agents-list-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
browser-tool.schema.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
browser-tool.test.ts fix: preserve explicit maxChars=0 (#796) (thanks @gabriel-trigo) 2026-01-13 02:33:38 +00:00
browser-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
canvas-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
common.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
common.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
cron-tool.test.ts fix(heartbeat): telegram accountId + cron jobId compat (#516, thanks @YuriNachos) 2026-01-08 20:47:22 +01:00
cron-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
discord-actions-guild.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
discord-actions-messaging.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
discord-actions-moderation.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
discord-actions.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
discord-actions.ts refactor!: rename chat providers to channels 2026-01-13 08:40:39 +00:00
gateway-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
gateway.test.ts chore: changelog for #293 2026-01-06 15:32:06 +01:00
gateway.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
image-tool.helpers.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
image-tool.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
image-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
memory-tool.ts chore: reinforce memory recall prompts 2026-01-12 23:29:56 +00:00
message-tool.ts feat(telegram): add deleteMessage action 2026-01-15 00:29:53 +00:00
nodes-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes-utils.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
session-status-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-announce-target.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-announce-target.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-helpers.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-history-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-list-tool.gating.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-list-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-send-helpers.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-send-tool.a2a.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-send-tool.gating.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-send-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sessions-spawn-tool.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
slack-actions.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
slack-actions.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
telegram-actions.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
telegram-actions.ts feat(telegram): add deleteMessage action 2026-01-15 00:29:53 +00:00
whatsapp-actions.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
whatsapp-actions.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00