Reference
Delete messages
Delete messages from a chat on Telegram. `revoke` also deletes them for the other person where Telegram allows it (private chats; your own messages in small groups). Cannot be undone — ask the user first.
View MarkdownThis page is generated from the source code on every release.
Delete messages from a chat on Telegram. revoke also deletes them for the other person where Telegram allows it (private chats; your own messages in small groups). Cannot be undone — ask the user first.
Overview
| Name | Value |
|---|---|
| Code | messages.delete |
| Scope needed | messages.manage |
| Risk | Dangerous |
| May need confirmation | Yes |
| Runs as | Queues work for a node |
Needs Idempotency-Key |
Yes |
| Member roles allowed | owner, manager, agent |
| Needs a worker from version | 1.0.15 |
| In the app | Inbox → message menu → Delete |
Input fields
| Field | Type | Required | Description |
|---|---|---|---|
conversationId |
uuid |
Yes | |
messageIds |
uuid[] |
Yes | |
revoke |
true/false |
No |
Example request
curl -X POST https://tlg.builera.app/api/public/v2/ops/messages.delete \
-H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <unique key per operation>" \
-d '{"conversationId":"00000000-0000-0000-0000-000000000000","messageIds":[]}'Output fields (data)
| Field | Type | Required |
|---|---|---|
ok |
true |
Yes |
jobId |
text |
Yes |
Example answer
{
"data": {
"ok": true,
"jobId": "00000000-0000-4000-8000-000000000000"
}
}Using it over MCP
Tool messages_delete is listed on the profiles: Real-time operations (realtime), Automation setup (setup), Discover (prospecting), Reports (reports), Administration (admin), Full (full). On other profiles, find it with tools_search and run it with tools_run.