feat(lark-msg-tool): 更新消息发送方法以支持返回消息ID
All checks were successful
/ release (push) Successful in 24s
All checks were successful
/ release (push) Successful in 24s
This commit is contained in:
parent
cf8f7b9f55
commit
e57d007f9c
@ -116,7 +116,10 @@ class LarkMessageService extends LarkBaseService {
|
|||||||
if (msgType === "text" && !content.includes('"text"')) {
|
if (msgType === "text" && !content.includes('"text"')) {
|
||||||
content = JSON.stringify({ text: content })
|
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,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user