Bot

Delete messages

Deletes up to 100 messages from one chat. Missing message IDs are skipped.

post/bot/deleteMessages

Headers

authorizationstring required

Required bot token using the Bearer scheme.

Request body

user_idinteger

Target a private conversation with this user. Supply exactly one of user_id or chat_id.

chat_idinteger

Target this chat. Supply exactly one of chat_id or user_id.

message_idsMessageId[] required

Response

Successful response for an action with no return value.

oktrue required

Always true for a successful request.

resultobject required

Method-specific response payload.

Example response

{
  "ok": true,
  "result": {}
}

Changes