Giter VIP home page Giter VIP logo

Comments (8)

zhaoche27 avatar zhaoche27 commented on July 21, 2024 1

go get -u github.com/larksuite/oapi-sdk-go/v2
github.com/larksuite/oapi-sdk-go/v2 v2.0.11
给你看看修改的代码:96f23e6 ,其实问题也不难发现,需要细心一些。主要还是因为自定义机器人发送的消息体定义的问题,其他消息类型都是 content 字段, 只有消息卡片是 card 字段

from oapi-sdk-go.

zhaoche27 avatar zhaoche27 commented on July 21, 2024

https://github.com/larksuite/oapi-sdk-go/blob/v2_main/sample/customer_bot/customer_bot.go 看看这个示例或源代码(也也比较简单),直接
image

from oapi-sdk-go.

mxlxm avatar mxlxm commented on July 21, 2024

text类型是可以 消息卡片成功不了

from oapi-sdk-go.

zhaoche27 avatar zhaoche27 commented on July 21, 2024

可以继续发挥一下研发的精神,https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN#4996824a ,看看 你的&lark.MessageCard{} 的json 与 文档中的消息卡片有什么出入?

from oapi-sdk-go.

zhaoche27 avatar zhaoche27 commented on July 21, 2024

我这边也看看

from oapi-sdk-go.

mxlxm avatar mxlxm commented on July 21, 2024

可以继续发挥一下研发的精神,https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN#4996824a ,看看 你的&lark.MessageCard{} 的json 与 文档中的消息卡片有什么出入?

https://github.com/larksuite/oapi-sdk-go/blob/v2_main/sample/api/message_model_card.go 卡片内容是复制的这里的

from oapi-sdk-go.

mxlxm avatar mxlxm commented on July 21, 2024

尝试了直接传对象、对象地址、拼装json 都是相同的报错

from oapi-sdk-go.

mxlxm avatar mxlxm commented on July 21, 2024

没有仔细看代码 居家很烦躁。。。

from oapi-sdk-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.