requestsでSlackに画像送信 [Python]

Incoming Webhookをチャンネルにインストールし、TOKENとCHANNEL IDを取得していることが前提条件。
import requestsTOKEN = "xxxxxxxxxxxxxxxxxxx"CHANNEL ...requetsでSlackにメッセージ送信 [Python]

Incoming Webhookをチャンネルにインストールし、TOKENとCHANNEL IDを取得していることが前提条件。
import requestsTOKEN = "xxxxxxxxxxxxxxxxxxx"CHANNEL ...チャンネルIDの取得方法 [Slack]

チャンネルを右クリックし、Copy linkをクリック。
すると以下のようなリンクを取得できる。
このリンクの末尾の記号がチャンネルIDである。
Slack通知、2行で [Python]

import slackwebslack = slackweb.Slack(url="Webhook URL")slack.notify(text="This is message for you.")
参照