From 5397443fb916a27f5f48012853342a09188de594 Mon Sep 17 00:00:00 2001 From: "@zimeg" Date: Fri, 25 Oct 2024 15:28:56 -0700 Subject: [PATCH] docs: remove a preference for the chat.postMessage method --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0788398..ea630e7 100644 --- a/README.md +++ b/README.md @@ -138,15 +138,16 @@ messages or [uploading a file][files.upload] with the convenience of the The exact Slack API [method][methods] used will require setting various sets of [scopes][scopes], but setup should be similar for all methods: -- [Create a Slack App][apps] for your workspace or use an existing one. -- Add the [`chat:write`][chat:write] bot scope under the **OAuth & Permissions** - page. +- [Create a Slack app][apps] for your workspace or use an existing app. +- Select a [method][methods] to call and add the required **scopes** to your app + under the **OAuth & Permissions** page on app settings. - Install the app to your workspace using the **Install App** page. -- Copy the app's Bot Token from the **OAuth & Permissions** page and - [add it as a secret in your repo settings][repo-secret] named - `SLACK_BOT_TOKEN`. -- Invite the bot user into the channel you wish to post messages to - (`/invite @bot_user_name`). +- Find the [token][tokens] minted for the Slack API method being called from the + **OAuth & Permissions** page. +- Add the token as [a repository secret][repo-secret] called `SLACK_BOT_TOKEN` + or something similar and memorable. +- [Add this Action as a step][job-step] to your GitHub workflow and set the + input payload to send. #### Usage