MadelineProto/docs/TD_docs/methods/deleteMessages.md

25 lines
691 B
Markdown
Raw Normal View History

---
title: deleteMessages
2017-08-25 15:05:53 +02:00
description: Deletes messages
---
## Method: deleteMessages
[Back to methods index](index.md)
2017-06-06 18:39:21 +02:00
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
2017-08-25 15:05:53 +02:00
Deletes messages
### Params:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
2017-08-25 15:05:53 +02:00
|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)