Hi,
I'm having trouble to send a message on a Channel.
Heres my request:
curl -X POST \
https://slack.com/api/chat.postMessage \
-H 'Authorization: Bearer xoxp-********' \
-H 'Content-Type: application/json' \
-d '{
"channel": "mychannel",
"text": "this is my message",
"as_user": false
}'
And this is the response I get :
{
"ok": false,
"error": "missing_scope",
"needed": "chat:write:bot",
"provided": "identify,bot,incoming-webhook,channels:read,channels:write,chat:write",
"warning": "missing_charset",
"response_metadata": {
"warnings": [
"missing_charset"
]
}
}
As you can see, it asks for chat:write:bot scope, while I have the chat:write
In the documentation it is stated :
For new Slack apps, chat:write replaces both chat:write:user and chat:write:bot. Here's a bit more detail on why perspectival scopes are disappearing.
And there is no way to add the scope chat:write:bot (scope not found in the list)
Does anyone can help ?
Hi,
I'm having trouble to send a message on a Channel.
Heres my request:
And this is the response I get :
As you can see, it asks for
chat:write:botscope, while I have thechat:writeIn the documentation it is stated :
And there is no way to add the scope
chat:write:bot(scope not found in the list)Does anyone can help ?