티스토리 뷰

공부

[Slack] send message

승가비 2022. 5. 14. 20:44
728x90
Content-Type: application/json
Authorization: 'Bearer ' + token

{
    "text": "hello",
    "as_user": true,
    "channel": "U##########"
}
 

chat.postMessage API method

Sends a message to a channel.

api.slack.com

 

How to send direct messages to a user as app in app channel

How is it possible to send message in slack directly to the user, by user.id as application. this application has scope: bot,channels:write,emoji:read,users:read,users:read.email I find how to send

stackoverflow.com

 

JSON post request to slack returns invalid_auth

I'm trying to open a dialog in slack through a google app script after the user presses a button but i'm getting the following error message: {"ok":false,"error":"invalid_auth","warning":"

stackoverflow.com

 

728x90
댓글