松弛工具。
ibearychat的Python项目详细描述
我早知道
bearychat的工具包。
安装
pip install ibearychat
演示
from ibearychat import slack_incoming
webhook_url = "your_incoming_url"
bearychat_incoming(
webhook_url,
pretext="This is pretext.",
title="This is title.",
url="https://www.teachmyself.cn.",
color="#70cc29",
text_list=["This is the first line.", "This is the second line"],
debug=True
)
# or
payload = {
"pretext" : "This is pretext.",
"title" : "This is title.",
"url" : "This is title.",
"color" : "#70cc29",
"text" : ["This is the first line.", "This is the second line"],
}
bearychat_incoming(webhook_url, payload=payload, debug=True)