(ctx context.Context, imageKey string, msgId *string, sessionId *string, question string)
| 817 | } |
| 818 | |
| 819 | func 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 | |
| 837 | func sendVarImageCard(ctx context.Context, imageKey string, |
| 838 | msgId *string, sessionId *string) error { |
no test coverage detected