feat(lark-msg-tool): 更新消息发送方法以支持返回消息ID
All checks were successful
/ release (push) Successful in 24s

This commit is contained in:
zhaoyingbo 2024-11-29 07:31:27 +00:00
parent cf8f7b9f55
commit e57d007f9c

View File

@ -116,7 +116,10 @@ class LarkMessageService extends LarkBaseService {
if (msgType === "text" && !content.includes('"text"')) {
content = JSON.stringify({ text: content })
}
return this.post<Lark.BaseRes>(path, { msg_type: msgType, content })
return this.post<Lark.BaseRes<{ message_id: string }>>(path, {
msg_type: msgType,
content,
})
}
/**