mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 23:46:54 +01:00
25 lines
683 B
Markdown
25 lines
683 B
Markdown
---
|
|
title: deleteMessages
|
|
description: Deletes messages
|
|
---
|
|
## Method: deleteMessages
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
|
|
|
|
|
|
Deletes messages
|
|
|
|
### Params:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|chat\_id|[int53](../types/int53.md) | Yes|Chat identifier|
|
|
|message\_ids|Array of [int53](../types/int53.md) | Yes|Identifiers of messages to delete|
|
|
|revoke|[Bool](../types/Bool.md) | Yes|Pass true to try to delete sent messages for all chat members (may fail if messages are too old). Is always true for Channels and SecretChats|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|