常见问题
开发前须知
ID类问题
1.
2.

机器人相关问题
1.

1.

1.

1.

1.
at
标签实现@人效果。at
标签示意// at 指定用户
<at user_id="ou_xxx">Name</at> //可以填入open_id,union_id或user_id来at指定人
// at 所有人
<at user_id="all">所有人</at>
content
示意:{
"content": " {\"text\":\"<at user_id=\\\"ou_xxxxxxxx\\\">Tom</at> text content\"}"
}
at
标签示意// at 指定用户
{
"tag": "at",
"user_id": "ou_xxxxxxx", //可以填入open_id,union_id或user_id来at指定人
"user_name": "tom"
}
// at 所有人
{
"tag": "at",
"user_id": "all",//取值使用"all"来at所有人
"user_name": "所有人"
}
content
示意:{
"zh_cn": {
"title": "我是一个标题",
"content": [
[
{
"tag": "text",
"text": "第一行 :"
},
{
"tag": "at",
"user_id": "ou_xxxxxx",//可以填入open_id,union_id或user_id来at指定人
"user_name": "tom"
}
],
[
{
"tag": "text",
"text": "第二行:"
},
{
"tag": "at",
"user_id": "all",
"user_name": "所有人"//取值使用"all"来at所有人
}
]
]
}
}
可以使用消息卡片Markdown内容中的at人标签,标签示意:
// at 指定用户
<at id=ou_xxx></at> //使用open_id at指定人
<at id=b6xxxxg8></at> //使用user_id at指定人
<at email=test@email.com></at> //使用邮箱地址 at指定人
// at 所有人
<at id=all></at>
content
示意:{
"config": {
"wide_screen_mode": true
},
"header": {
"title": {
"tag": "plain_text",
"content": "这是卡片标题内容"
},
"template": "blue"
},
"elements": [
{
"tag": "div",
"text": {
"content": "at所有人<at id=all></at> \nat指定人<at id=ou_xxxxxx></at>",
"tag": "lark_md"
}
}
]
}
“仅群主和群管理员可@所有人”
配置,且机器人不是群主或管理员,则无法@所有人。
消息相关问题

消息卡片相关问题
注意:
msg_type
为interactive
,content
取值为card:{}
结构体;群组相关问题
事件相关问题
错误排查
1.
2.
1.
2.
错误码 | 频控策略 | 建议 |
---|---|---|
230020 | 发送消息(V1)接口触发群维度的发消息限流 | 单群发消息的QPS不超过5QPS,参考 频控策略 |
11232 | 发消息接口(V4)触发IM系统维度限流 | 等待后重试。 |
11233 | 发消息接口(V4)触发群维度的发消息限流 | 单群发消息的QPS不超过5QPS,参考 频控策略 |
11247 | 批量发送消息触发每日额度限制 | 单个应用每天通过该接口发送的总消息条数不超过50万,请合理分配批量发送的额度。 |
99991400 | 触发接口频控 | 请求过于频繁,请降低请求频次,调用频率不高于频控策略 |
{
"receive_id":"14f76322",
"msg_type": "post",
"content":"{\"zh_cn\":{\"title\":\"我是一个标题\",\"content\":[[{\"tag\":\"text\",\"text\":\"第一行:\"},{\"tag\":\"a\",\"href\":\"[http://www.feishu.cn](http://www.feishu.cn/)\",\"text\":\"超链接\"},{\"tag\":\"at\",\"user_id\":\"14f76322\",\"user_name\":\"tom\"}]]}}"
}
1.
2.
3.
其他
修改于 2023-01-12 07:20:29