Chat
Chat Delete
Deletes a message.
Authorization
slackAuth chat:write:user, chat:write:botAuthorizationBearer <token>
In: header
Scope: chat:write:user, chat:write:bot
Header Parameters
token?string
Authentication token. Requires scope: chat:write
Content-Type*"application/x-www-form-urlencoded"
Value in
- "application/x-www-form-urlencoded"
Request Body
application/x-www-form-urlencoded
ts?number
Timestamp of the message to be deleted.
Format
doublechannel?string
Channel containing the message to be deleted.
as_user?boolean
Pass true to delete the message as the authed user with chat:write:user scope. Bot users in this context are considered authed users. If unused or false, the message will be deleted with chat:write:bot scope.
Response Body
application/json
application/json
curl -X POST "https://example.com/chat.delete" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d ''{ "channel": "string", "ok": "True", "ts": "string"}
