curl --location --request POST 'https://slack.com/api/chat.postMessage' \
--header 'token;' \
--data-urlencode 'channel='
{
"channel": "C1H9RESGL",
"message": {
"attachments": [
{
"fallback": "This is an attachment's fallback",
"id": 1,
"text": "This is an attachment"
}
],
"bot_id": "B19LU7CSY",
"subtype": "bot_message",
"text": "Here's a message for you",
"ts": "1503435956.000247",
"type": "message",
"username": "ecto1"
},
"ok": true,
"ts": "1503435956.000247"
}
chat:write
icon_url
. Must be used in conjunction with as_user
set to false
, otherwise ignored. See authorship below.as_user
set to false, otherwise ignored. See authorship below.false
. Enabled by default.none
. See below.thread_ts
and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false
.ts
value to make this message a reply. Avoid using a reply's ts
value; use its parent instead.as_user
set to false, otherwise ignored. See authorship below.