Open mutheud opened 2 years ago
Kindly share link to the API documentation you plan to use below
SEND COMMANDS
Prerequisites: Install package slack_bolt - A Python framework to build Slack apps in a flash with the latest platform features. Install python slack SDK( pip install slack_sdk) - offers several APIs to build apps:
1. create a new slack workspace
2. Create a slack app
Create a new Slack App on api.slack.com.
Request for permission on https://api.slack.com/scopes
- Add the [chat:write scope](https://api.slack.com/scopes/chat:write) to grant your app the permission to post messages in channels it's a member of.
- Add the [im:write scope](https://api.slack.com/scopes/im:write) to grant your app the permission to post messages in DMs.
- Install the app in my workspace and authorize the app for the Bot User permissions.
- Copy and save my bot token
Build a Message
{ “channel”: “MY_CHANNEL_ID”, “Text”: “Hello, world” } Publishing my message
API Documentation: https://api.slack.com/web Slack tutorial: https://github.com/slackapi/python-slack-sdk/tree/main/tutorial
@DavisRayM
LGTM, Kindly go ahead and submit a PR when ready
READ COMMANDS
1. Reinstall Slack App 2. Slack scope:
a) Bot -> i)channels:read
ii)channels:history
b) User -> i)im:read
ii)group:read
iii)im:history
iv)groups:history
3. Slack events respective to the slack scope chosen @DavisRayM