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

Function sendImageCard

code/handlers/msg.go:819–835  ·  view source on GitHub ↗
(ctx context.Context, imageKey string,
	msgId *string, sessionId *string, question string)

Source from the content-addressed store, hash-verified

817}
818
819func sendImageCard(ctx context.Context, imageKey string,
820 msgId *string, sessionId *string, question string) error {
821 newCard, _ := newSimpleSendCard(
822 withImageDiv(imageKey),
823 withSplitLine(),
824 //再来一张
825 withOneBtn(newBtn("再来一张", map[string]interface{}{
826 "value": question,
827 "kind": PicTextMoreKind,
828 "chatType": UserChatType,
829 "msgId": *msgId,
830 "sessionId": *sessionId,
831 }, larkcard.MessageCardButtonTypePrimary)),
832 )
833 replyCard(ctx, msgId, newCard)
834 return nil
835}
836
837func sendVarImageCard(ctx context.Context, imageKey string,
838 msgId *string, sessionId *string) error {

Callers 1

replayImageCardByBase64Function · 0.85

Calls 6

newSimpleSendCardFunction · 0.85
withImageDivFunction · 0.85
withSplitLineFunction · 0.85
withOneBtnFunction · 0.85
newBtnFunction · 0.85
replyCardFunction · 0.85

Tested by

no test coverage detected