Artalk icon indicating copy to clipboard operation
Artalk copied to clipboard

希望支持飞书推送卡片消息

Open HeLongaa opened this issue 10 months ago • 3 comments

飞书推送是纯文字,希望支持卡片推送: 例: 发送消息卡片仅需要将消息体的 content 字符串替换为 card 结构体。

请求消息体示例 { "msg_type": "interactive", "card": { "elements": [{ "tag": "div", "text": { "content": "西湖,位于浙江省杭州市西湖区龙井路1号,杭州市区西部,景区总面积49平方千米,汇水面积为21.22平方千米,湖面面积为6.38平方千米。", "tag": "lark_md" } }, { "actions": [{ "tag": "button", "text": { "content": "更多景点介绍 :玫瑰:", "tag": "lark_md" }, "url": "https://www.example.com", "type": "default", "value": {} }], "tag": "action" }], "header": { "title": { "content": "今日旅游推荐", "tag": "plain_text" } } } }

HeLongaa avatar Apr 16 '24 20:04 HeLongaa

image

HeLongaa avatar Apr 16 '24 20:04 HeLongaa

你好,新版将支持飞书卡片消息,可以把 admin_notify.notify_tpl (多元推送 > 通知模版) 设置为:

💬 [{{site_name}}] 有新评论

@{{reply_nick}}: {{reply_content}}

{{link_to_reply}}

第一行内容将作为卡片的标题,最后一行内容将作为“回复”按钮的链接。

通过 admin_notify.lark.msg_type(多元推送 > 飞书 > 消息类型) 设置为 card 启用这个功能。

感谢反馈!

image

qwqcode avatar Apr 27 '24 11:04 qwqcode

感谢回复,祝好

HeLongaa avatar Apr 27 '24 15:04 HeLongaa

你好,刚刚 v2.8.6 版本已发布了,包含了这个更新

qwqcode avatar May 09 '24 06:05 qwqcode

感谢开发者,祝好

HeLongaa avatar May 09 '24 19:05 HeLongaa