Skip to main content
Version: 4.x

Lark (Feishu)

飞书 use Incoming Webhooks whose constructs typically support both text and interactive card, and can be configured as follows:

Due to system limitations try to use keyword or IP address whitelist mechanism to receive messages.

Text format

{
"msg_type": "text",
"text": {
"content": "#{@title}\n\n安装地址:#{@install_url}\nUplaod at: #{@uploaded_at}"
}
}

Interactive card format

Use card format could use partly of markdown syntax:

{
"msg_type": "interactive",
"card": {
"config": {
"wide_screen_mode": true,
"enable_forward": true
},
"elements": [
{
"tag": "div",
"text": {
"content": "## #{@title}\nPlatform: #{@device_type}\nUplaod at: #{@uploaded_at}\nInstall QRcode:\n![qrcode](#{@qrcode_url})",
"tag": "lark_md"
}
},
{
"actions": [{
"tag": "button",
"text": {
"content": "Install",
"tag": "lark_md"
},
"url": @install_url,
"type": "default",
"value": {}
}],
"tag": "action"
}
]
}
}