MCPcopy
hub / github.com/ConnectAI-E/feishu-openai / newBtn

Function newBtn

code/handlers/msg.go:227–237  ·  view source on GitHub ↗
(content string, value map[string]interface{},
	typename larkcard.MessageCardButtonType)

Source from the content-addressed store, hash-verified

225}
226
227func newBtn(content string, value map[string]interface{},
228 typename larkcard.MessageCardButtonType) *larkcard.
229 MessageCardEmbedButton {
230 btn := larkcard.NewMessageCardEmbedButton().
231 Type(typename).
232 Value(value).
233 Text(larkcard.NewMessageCardPlainText().
234 Content(content).
235 Build())
236 return btn
237}
238
239func newMenu(
240 placeHolder string,

Callers 6

withClearDoubleCheckBtnFunction · 0.85
sendHelpCardFunction · 0.85
sendImageCardFunction · 0.85
sendVarImageCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected