go-lark / lark

An easy-to-use SDK for Feishu and Lark Open Platform (Instant Messaging API only)
https://go-lark.github.io/
MIT License
205 stars 31 forks source link

使用同一个卡片json,可以PostMessage但是UpdateMessage会报错Your request contains an invalid request parameter, ext=This message is NOT a card #48

Closed 2nfree closed 1 year ago

2nfree commented 1 year ago
msg := golark.NewMsgBuffer(golark.MsgInteractive)
b := golark.NewCardBuilder()
c:= b.Card(b.Markdown("测试"), b.Action(b.Button(b.Text("确认")))).Title("测试").Purple().UpdateMulti(true)
build := msg.BindOpenID("ou_xxxx").Card(c.String()).Build()
message, err := bot.UpdateMessage(msgId, build)

使用如上代码更新消息卡片会报错:Your request contains an invalid request parameter, ext=This message is NOT a card 如果使用 bot.PostMessage则正常