Skip to main content
POST
Delete Chat messages

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required
Pattern: ^([0-9]{1,19}|[0-9]{1,19}-[0-9]{1,19}|g[0-9]{1,19})$

Body

application/json
action_signatures
object[]
required

Cryptographic signatures for the action.

delete_message_action
enum<string>
required

delete_for_all removes the messages for every participant; delete_for_self removes them only from the authenticated user's view.

Available options:
delete_for_all,
delete_for_self
sequence_ids
string[]
required

Sequence IDs of the messages to delete.

Minimum array length: 1
media_hash_keys
string[]

Hash keys of encrypted media blobs to delete alongside the messages (delete_for_all only).

Response

The request has succeeded.

data
object
errors
object[]