Send message
Tags: #slack #message #send #operations #snippet
Description: This notebook allows you to quickly and easily send messages through Slack.
from naas_drivers import slack
- Add OAuth & Permissions(chat:write, chat:write.public to send message in a public channel)
- Install your App
- Get your Bot Token
SLACK_TOKEN = "xoxb-XXXXXXXXXXXXXXXXXXXXXXX"
SLACK_CHANNEL = "channel-name"
SLACK_MESSAGE = "Hello World!"
SLACK = slack.connect(SLACK_TOKEN)
SLACK.send(SLACK_CHANNEL, SLACK_MESSAGE)
Last modified 1mo ago