Versions in this module Expand all Collapse all v1 v1.0.1 Sep 11, 2023 Changes in this version + const TemplateCardSourceDescColorBlack + const TemplateCardSourceDescColorGreen + const TemplateCardSourceDescColorGrey + const TemplateCardSourceDescColorRed + const TemplateCardTypeNews + const TemplateCardTypeText + var ErrUnsupportedMessage = errors.New("尚不支持的消息类型") + type Image struct + Base64 string + MD5 string + type Markdown struct + Content string + type News struct + Articles []NewsArticle + type NewsArticle struct + Description string + PicURL string + Title string + URL string + type TemplateCard struct + CardAction TemplateCardAction + CardImage *TemplateCardImage + CardType string + EmphasisContent *TemplateCardEmphasisContent + HorizontalContentList *[]TemplateCardHorizontalContent + ImageTextArea *TemplateCardImageTextArea + JumpList *[]TemplateCardJump + MainTitle TemplateCardMainTitle + QuoteArea *TemplateCardQuoteArea + Source *TemplateCardSource + SubTitleText *string + type TemplateCardAction struct + AppID *string + PagePath *string + Type TemplateCardActionType + Url *string + type TemplateCardActionType int + const TemplateCardActionTypeMiniApp + const TemplateCardActionTypeUrl + type TemplateCardEmphasisContent struct + Desc *string + Title *string + type TemplateCardHorizontalContent struct + KeyName string + MediaID *string + Type TemplateCardHorizontalContentType + Url *string + UserID *string + Value *string + type TemplateCardHorizontalContentType int + const TemplateCardHorizontalContentTypeAttachment + const TemplateCardHorizontalContentTypeMention + const TemplateCardHorizontalContentTypeText + const TemplateCardHorizontalContentTypeUrl + type TemplateCardImage struct + AspectRatio *float64 + Url string + type TemplateCardImageTextArea struct + AppID *string + Desc *string + ImageUrl string + PagePath *string + Title *string + Type TemplateCardImageTextAreaType + Url *string + type TemplateCardImageTextAreaType int + const TemplateCardImageTextAreaTypeMiniApp + const TemplateCardImageTextAreaTypeNone + const TemplateCardImageTextAreaTypeUrl + type TemplateCardJump struct + AppID *string + PagePath *string + Title string + Type TemplateCardJumpType + Url *string + type TemplateCardJumpType int + const TemplateCardJumpTypeMiniApp + const TemplateCardJumpTypeNone + const TemplateCardJumpTypeUrl + type TemplateCardMainTitle struct + Desc *string + Title *string + type TemplateCardQuoteArea struct + AppID *string + PagePath *string + QuoteText *string + Title *string + Type TemplateCardQuoteAreaType + Url *string + type TemplateCardQuoteAreaType int + const TemplateCardQuoteAreaTypeMiniApp + const TemplateCardQuoteAreaTypeNone + const TemplateCardQuoteAreaTypeUrl + type TemplateCardSource struct + Desc *string + DescColor int + IconUrl *string + type TemplateCardSourceDescColor int + type Text struct + Content string + MentionedList []string + MentionedMobileList []string + type UploadedMedia struct + CreatedAt string + MediaID string + Type string + type WxWorkBot struct + Client *http.Client + Key string + WebHookUrl string + func New(botKey string) *WxWorkBot + func (bot *WxWorkBot) Send(msg interface{}) error + func (bot *WxWorkBot) UploadMedia(fileName string, fileBytes *[]byte) (*UploadedMedia, error)