openclaw/src/telegram
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
..
bot chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
accounts.test.ts refactor!: rename chat providers to channels 2026-01-13 08:40:39 +00:00
accounts.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
audit.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
audit.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot-access.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot-handlers.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot-message-context.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot-message-dispatch.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot-message.ts refactor(telegram): split bot handlers 2026-01-14 09:11:32 +00:00
bot-native-commands.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot-updates.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.accepts-group-messages-mentionpatterns-match-without-botusername.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.applies-topic-skill-filters-system-prompts.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.blocks-all-group-messages-grouppolicy-is.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.dedupes-duplicate-callback-query-updates-by-update.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.installs-grammy-throttler.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.matches-tg-prefixed-allowfrom-entries-case-insensitively.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.matches-usernames-case-insensitively-grouppolicy-is.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.routes-dms-by-telegram-accountid-binding.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.sends-replies-without-native-reply-threading.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.media.downloads-media-file-path-no-file-download.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.media.includes-location-text-ctx-fields-pins.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
download.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
download.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
draft-chunking.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
draft-chunking.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
draft-stream.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
fetch.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
format.test.ts fix: telegram html formatting (#435, thanks @RandyVentures) 2026-01-08 02:34:32 +01:00
format.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
index.ts feat: unify provider reaction tools 2026-01-07 04:16:39 +01:00
monitor.test.ts refactor!: rename chat providers to channels 2026-01-13 08:40:39 +00:00
monitor.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
pairing-store.test.ts fix(security): lock down inbound DMs by default 2026-01-06 17:51:56 +01:00
pairing-store.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
probe.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
proxy.ts refactor: lint cleanups and helpers 2025-12-23 00:28:55 +00:00
send.caption-split.test.ts chore(auth): rename Claude CLI to Claude Code CLI (#915) 2026-01-14 19:57:42 +00:00
send.preserves-thread-params-plain-text-fallback.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.returns-undefined-empty-input.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.ts feat(telegram): add deleteMessage action 2026-01-15 00:29:53 +00:00
targets.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
targets.ts refactor(telegram): centralize target parsing 2026-01-08 21:38:59 +01:00
token.test.ts refactor!: rename chat providers to channels 2026-01-13 08:40:39 +00:00
token.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
update-offset-store.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
update-offset-store.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
voice.test.ts refactor: consolidate reply/media helpers 2026-01-10 02:41:16 +01:00
voice.ts refactor: unify inline directives and media fetch 2026-01-10 03:01:04 +01:00
webhook-set.ts style(telegram): format bot init 2026-01-09 13:57:06 +01:00
webhook.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
webhook.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00