这样做有效:
client.chat_postMessage(
channel=channel,
thread_ts = thread_ts,
blocks=
[
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Danny Torrence left the following review for your property:"
}
},
[ ... and so on... more sections ...]
)
但这不起作用:
client.chat_postMessage(
channel=channel,
thread_ts = thread_ts,
blocks=blockmsg
)
其中blockmsg是我之前在程序中定义的多行文字。Slack只是不发布“blockmsg”,它是静默的,即没有错误消息。你知道吗
这里有什么“明白”吗?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐