/chat.delete
POST
/chat.deleteDeletes a message.
Request
Header Params
token
string
optional
Authentication token. Requires scope: chat:write
Body Params application/x-www-form-urlencoded
as_user
string
optional
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.
channel
string
optional
Channel containing the message to be deleted.
ts
number
optional
Timestamp of the message to be deleted.
Request samples
Responses
Typical success response(200)
Typical error response(500)
Typical success response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
channel
#/definitions/700138required
ok
#/definitions/700149required
ts
#/definitions/700156required
Exampleresponse
{
"channel": "C024BE91L",
"ok": true,
"ts": "1401383885.000061"
}
Last modified: a year ago