Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

slack send message python

import os
import slack

slack_token = os.environ["SLACK_API_TOKEN"]
client = slack.WebClient(token=slack_token)

client.chat_postMessage(
  channel="C0XXXXXX",
  text="Hello from your app! :tada:"
)
Source by slack.dev #
 
PREVIOUS NEXT
Tagged: #slack #send #message #python
ADD COMMENT
Topic
Name
9+3 =