📜  slack 发送消息 python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.395000             🧑  作者: Mango

代码示例1
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:"
)