Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

Message can't be posted as bot #13

@TheSquad

Description

@TheSquad

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions