Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2023 Changes in this version + type ActionList struct + Key string + Text string + type ActionMenu struct + ActionList []ActionList + Desc string + type ApprovalInfo struct + ApplyTime int + ApplyUserID string + ApplyUserImage string + ApplyUserName string + ApplyUserParty string + ApprovalNodes ApprovalNodes + Approverstep int + NotifyNodes NotifyNodes + OpenSpName string + OpenSpStatus int + OpenTemplateID string + ThirdNo string + type ApprovalNode struct + Items Items + NodeAttr int + NodeStatus int + NodeType int + type ApprovalNodes struct + ApprovalNode ApprovalNode + type ArticleResponseMessage struct + ArticleCount int + Articles ResponseArticles + type Articles struct + Appid string + Description string + Pagepath string + Picurl string + Title string + URL string + type BaseMessageOptions struct + Agentid int + DuplicateCheckInterval int + EnableDuplicateCheck int + EnableIDTrans int + Msgtype string + Safe int + Toparty string + Totag string + Touser string + type BaseMessageSchema struct + Invalidparty string + Invalidtag string + Invaliduser string + Msgid string + ResponseCode string + type BaseSendGroupMessage struct + Chatid string + Msgtype string + Safe int + type BaseTemplateCardUpdateMessage struct + Agentid int + Partyids []int + ResponseCode string + Userids []string + type BaseTemplateCardUpdateSchema struct + Invaliduser []string + type BatchJobApplication struct + ErrCode int + ErrMsg string + JobID string + JobType string + type BatchJobResultApplicationCallbackMessage struct + BatchJob BatchJobApplication + type Button struct + ReplaceName string + type ButtonActionList struct + Key string + Text string + type ButtonActionMenu struct + ActionList []ButtonActionList + Desc string + type ButtonButtonList struct + Key string + Style int + Text string + type ButtonButtonSelection struct + Disable bool + OptionList []ButtonOptionList + QuestionKey string + SelectedID string + Title string + type ButtonCardAction struct + Title string + Type int + URL string + type ButtonHorizontalContentList struct + KeyName string + Type int + URL string + Value string + type ButtonJumpList struct + Title string + Type int + URL string + type ButtonList struct + Key string + Style int + Text string + type ButtonMainTitle struct + Desc string + Title string + type ButtonOptionList struct + ID string + Text string + type ButtonQuoteArea struct + QuoteText string + Title string + Type int + URL string + type ButtonResponseMessage struct + Button ResponseButton + type ButtonSelection struct + OptionList []OptionList + QuestionKey string + SelectedID string + Title string + type ButtonSource struct + Desc string + DescColor int + IconURL string + type ButtonTemplateCard struct + ActionMenu ButtonActionMenu + ButtonList []ButtonButtonList + ButtonSelection ButtonButtonSelection + CardAction ButtonCardAction + CardType string + HorizontalContentList []ButtonHorizontalContentList + JumpList ButtonJumpList + MainTitle ButtonMainTitle + QuoteArea ButtonQuoteArea + ReplaceText string + Source ButtonSource + SubTitleText string + type CallbackMessage struct + ChangeType string + CreateTime int + Event string + FromUserName string + MsgType string + ToUserName string + type CardAction struct + Appid string + Pagepath string + Type int + URL string + type CardImage struct + AspectRatio float64 + URL string + type ChatInfo struct + Chatid string + Name string + Owner string + Userlist []string + type Checkbox struct + Mode int + OptionList []OptionListVote + QuestionKey string + type CheckboxUpdateVote struct + Disable bool + Mode int + OptionList []OptionListVote + QuestionKey string + type ClickCallbackMessage struct + AgentID int + EventKey string + type Client struct + func NewClient(cfg *config.Config) (client *Client, err error) + func (r *Client) CreateGroup(options CreateGroupOptions) (info CreateGroupSchema, err error) + func (r *Client) GetCallbackMessage(signatureOptions SignatureOptions, encryptedMsg []byte) (rawData []byte, msg CallbackMessage, err error) + func (r *Client) GetGroup(options GetGroupOptions) (info GetGroupSchema, err error) + func (r *Client) RecallMessage(options interface{}) (info util.CommonError, err error) + func (r *Client) SendGroupMessage(options interface{}) (info util.CommonError, err error) + func (r *Client) SendMessage(options interface{}) (info BaseMessageSchema, err error) + func (r *Client) UpdateGroup(options UpdateGroupOptions) (info util.CommonError, err error) + func (r *Client) UpdateTemplateCard(options interface{}) (info BaseTemplateCardUpdateSchema, err error) + func (r *Client) VerifyURL(options SignatureOptions) (string, error) + type ContentItem struct + Key string + Value string + type CreateGroupOptions struct + Chatid string + Name string + Owner string + Userlist []string + type CreateGroupSchema struct + Chatid string + type CreatePartyCallbackMessage struct + Id int + Name string + Order int + ParentId int + type CreateUserCallbackMessage struct + Address string + Alias string + Avatar string + Department []int + Email string + ExtAttr map[string]interface{} + Gender string + IsLeaderInDept []int + MainDepartment int + Mobile string + Name string + Position string + Status int + Telephone string + UserID string + type DeletePartyCallbackMessage struct + Id int + type DeleteUserCallbackMessage struct + UserID string + type EmphasisContent struct + Desc string + Title string + type EnterAgentCallbackMessage struct + AgentID int + EventKey string + type Error string + const SDKAccessTokenExpired + const SDKAccessTokenInvalid + const SDKAccessTokenMissing + const SDKApiForbidden + const SDKApiFreqOutOfLimit + const SDKApiNotOpen + const SDKCacheUnavailable + const SDKDecryptMSGFailed + const SDKInitFailed + const SDKInvalidCorpID + const SDKInvalidCredential + const SDKInvalidOpenKFID + const SDKNotUseInWeCom + const SDKOpenKFIDNotExist + const SDKUnknownError + const SDKValidateSignatureFailed + const SDKWeWorkAlready + func NewSDKErr(code int64, msgList ...string) Error + func (r Error) Error() string + type File struct + MediaID string + Name string + Size int + type FileMessageOptions struct + File File + type GetGroupOptions struct + Chatid string + type GetGroupSchema struct + ChatInfo ChatInfo + type HorizontalContentList struct + Keyname string + MediaID string + Type int + URL string + Userid string + Value string + type Image struct + MediaID string + type ImageMessageOptions struct + Image Image + type ImageResponseMessage struct + Image ResponseImage + type ImageTextActionList struct + Key string + Text string + type ImageTextActionMenu struct + ActionList []ImageTextActionList + Desc string + type ImageTextArea struct + Desc string + ImageURL string + Title string + Type int + URL string + type ImageTextCardAction struct + Title string + Type int + URL string + type ImageTextCardImage struct + AspectRatio float64 + URL string + type ImageTextHorizontalContentList struct + KeyName string + Type int + URL string + Value string + type ImageTextImageTextArea struct + Desc string + ImageURL string + Title string + Type int + URL string + type ImageTextJumpList struct + Title string + Type int + URL string + type ImageTextMainTitle struct + Desc string + Title string + type ImageTextQuoteArea struct + QuoteText string + Title string + Type int + URL string + type ImageTextSource struct + Desc string + DescColor int + IconURL string + type ImageTextTemplateCard struct + ActionMenu ImageTextActionMenu + CardAction ImageTextCardAction + CardImage ImageTextCardImage + CardType string + HorizontalContentList []ImageTextHorizontalContentList + ImageTextArea ImageTextImageTextArea + JumpList ImageTextJumpList + MainTitle ImageTextMainTitle + QuoteArea ImageTextQuoteArea + Source ImageTextSource + VerticalContentList []ImageTextVerticalContentList + type ImageTextVerticalContentList struct + Desc string + Title string + type Item struct + PicMd5Sum string + type Items struct + Item OpenApprovalItem + type JumpList struct + Appid string + Pagepath string + Title string + Type int + URL string + type LocationCallbackMessage struct + AgentID int + AppType string + Latitude float64 + Longitude float64 + Precision int + type LocationSelectCallbackMessage struct + AgentID int + AppType string + EventKey string + SendLocationInfo SendLocationInfo + type MainTitle struct + Desc string + Title string + type Markdown struct + Content string + type MarkdownMessageOptions struct + Markdown Markdown + type MiniprogramNotice struct + Appid string + ContentItem []ContentItem + Description string + EmphasisFirstItem bool + Page string + Title string + type MiniprogramNoticeMessageOptions struct + MiniprogramNotice MiniprogramNotice + type Mpnews struct + Articles []MpnewsArticles + type MpnewsArticles struct + Author string + Content string + ContentSourceURL string + Digest string + ThumbMediaID string + Title string + type MpnewsMessageOptions struct + Mpnews Mpnews + type News struct + Articles []Articles + type NewsMessageOptions struct + News News + type NotifyNode struct + ItemImage string + ItemName string + ItemUserID string + type NotifyNodes struct + NotifyNode NotifyNode + type OpenApprovalChangeCallbackMessage struct + AgentID int + ApprovalInfo ApprovalInfo + type OpenApprovalItem struct + ItemImage string + ItemName string + ItemOpTime int + ItemSpeech string + ItemStatus int + ItemUserID string + type OptionIds struct + OptionID []string + type OptionList struct + ID string + Text string + type OptionListVote struct + ID string + IsChecked bool + Text string + type PicList struct + Item Item + type PicSysphotoCallbackMessage struct + AgentID int + EventKey string + SendPicsInfo SendPicsInfo + type QuoteArea struct + QuoteText string + Title string + Type int + URL string + type RecallMessageOptions struct + Msgid string + type ResponseArticles struct + Item []ResponseItem + type ResponseButton struct + ReplaceName string + type ResponseImage struct + MediaID string + type ResponseItem struct + Description string + PicURL string + Title string + URL string + type ResponseMessage struct + CreateTime int + FromUserName string + MsgType string + ToUserName string + type ResponseVideo struct + Description string + MediaID string + Title string + type ResponseVoice struct + MediaID string + type ScanCodeInfo struct + ScanResult string + ScanType string + type ScancodeCallbackMessage struct + AgentID int + EventKey string + ScanCodeInfo ScanCodeInfo + type SelectList struct + OptionList []OptionList + QuestionKey string + SelectedID string + Title string + type SelectListUpdateFunction struct + Disable bool + OptionList []OptionList + QuestionKey string + SelectedID string + Title string + type SelectMainTitle struct + Desc string + Title string + type SelectOptionList struct + ID string + Text string + type SelectSelectList struct + Disable bool + OptionList []SelectOptionList + QuestionKey string + SelectedID string + Title string + type SelectSource struct + Desc string + IconURL string + type SelectSubmitButton struct + Key string + Text string + type SelectTemplateCard struct + CardType string + MainTitle SelectMainTitle + ReplaceText string + SelectList SelectSelectList + Source SelectSource + SubmitButton SelectSubmitButton + type SelectedItem struct + OptionIds OptionIds + QuestionKey string + type SelectedItems struct + SelectedItem []SelectedItem + type SendGroupFileMessage struct + MediaID string + type SendGroupFileMessageOptions struct + Chatid string + File File + Msgtype string + Safe int + type SendGroupImageMessage struct + MediaID string + type SendGroupImageMessageOptions struct + Image SendGroupImageMessage + type SendGroupMarkdownMessage struct + Content string + type SendGroupMarkdownMessageOptions struct + Chatid string + Markdown SendGroupMarkdownMessage + Msgtype string + type SendGroupMpnewsArticlesMessage struct + Author string + Content string + ContentSourceURL string + Digest string + ThumbMediaID string + Title string + type SendGroupMpnewsMessage struct + Articles []SendGroupMpnewsArticlesMessage + type SendGroupMpnewsMessageOptions struct + Chatid string + Mpnews SendGroupMpnewsMessage + Msgtype string + Safe int + type SendGroupNewsArticlesMessage struct + Description string + Picurl string + Title string + URL string + type SendGroupNewsMessage struct + Articles []SendGroupNewsArticlesMessage + type SendGroupNewsMessageOptions struct + Chatid string + Msgtype string + News SendGroupNewsMessage + Safe int + type SendGroupTextMessage struct + Content string + type SendGroupTextMessageOptions struct + Text SendGroupTextMessage + type SendGroupTextcardMessage struct + Btntxt string + Description string + Title string + URL string + type SendGroupTextcardMessageOptions struct + Textcard Textcard + type SendGroupVideoMessage struct + Description string + MediaID string + Title string + type SendGroupVideoMessageOptions struct + Video Video + type SendGroupVoiceMessage struct + MediaID string + type SendGroupVoiceMessageOptions struct + Chatid string + Msgtype string + Voice SendGroupVoiceMessage + type SendLocationInfo struct + Label string + LocationX string + LocationY string + Poiname string + Scale string + type SendPicsInfo struct + Count int + PicList PicList + type ShareAgentChangeCallbackMessage struct + AgentID int + type SignatureOptions struct + EchoStr string + Encrypt string + Nonce string + Signature string + TimeStamp string + type Source struct + Desc string + DescColor int + IconURL string + type SourceFunction struct + Desc string + IconURL string + type SourceVote struct + Desc string + IconURL string + type SubmitButton struct + Key string + Text string + type SubscribeCallbackMessage struct + AgentID int + type TemplateCard struct + ActionMenu ActionMenu + CardAction CardAction + CardType string + EmphasisContent EmphasisContent + HorizontalContentList []HorizontalContentList + JumpList []JumpList + MainTitle MainTitle + QuoteArea QuoteArea + Source Source + SubTitleText string + TaskID string + type TemplateCardButton struct + ActionMenu ActionMenu + ButtonList []ButtonList + ButtonSelection ButtonSelection + CardAction CardAction + CardType string + HorizontalContentList []HorizontalContentList + MainTitle MainTitle + QuoteArea QuoteArea + Source Source + SubTitleText string + TaskID string + type TemplateCardButtonMessageOptions struct + TemplateCard TemplateCardButton + type TemplateCardButtonResponseMessage struct + CreateTime int + FromUserName string + MsgType string + TemplateCard ButtonTemplateCard + ToUserName string + type TemplateCardEventCallbackMessage struct + AgentID int + CardType string + EventKey string + ResponseCode string + SelectedItems SelectedItems + TaskID string + type TemplateCardFunction struct + CardType string + MainTitle MainTitle + SelectList []SelectList + Source SourceFunction + SubmitButton SubmitButton + TaskID string + type TemplateCardFunctionMessageOptions struct + TemplateCard TemplateCardFunction + type TemplateCardImage struct + ActionMenu ActionMenu + CardAction CardAction + CardImage CardImage + CardType string + HorizontalContentList []HorizontalContentList + ImageTextArea ImageTextArea + JumpList []JumpList + MainTitle MainTitle + QuoteArea QuoteArea + Source Source + TaskID string + VerticalContentList []VerticalContentList + type TemplateCardImageMessageOptions struct + TemplateCard TemplateCardImage + type TemplateCardImageTextResponseMessage struct + TemplateCard ImageTextTemplateCard + type TemplateCardMenuEventCallbackMessage struct + AgentID int + CardType string + EventKey string + ResponseCode string + TaskID string + type TemplateCardMessageOptions struct + TemplateCard TemplateCard + type TemplateCardSelectResponseMessage struct + CreateTime int + FromUserName string + MsgType string + TemplateCard SelectTemplateCard + ToUserName string + type TemplateCardTextResponseMessage struct + TemplateCard TextTemplateCard + type TemplateCardUpdateButton struct + ActionMenu ActionMenu + ButtonList []ButtonList + ButtonSelection ButtonSelection + CardAction CardAction + CardType string + HorizontalContentList []HorizontalContentList + MainTitle MainTitle + QuoteArea QuoteArea + ReplaceText string + Source Source + SubTitleText string + type TemplateCardUpdateButtonMessageOptions struct + Agentid int + Partyids []int + ResponseCode string + TemplateCard TemplateCardUpdateButton + Userids []string + type TemplateCardUpdateFunction struct + CardType string + MainTitle MainTitle + ReplaceText string + SelectList []SelectListUpdateFunction + Source SourceFunction + SubmitButton SubmitButton + type TemplateCardUpdateFunctionMessageOptions struct + Agentid int + Atall int + Partyids []int + ResponseCode string + Tagids []int + TemplateCard TemplateCardUpdateFunction + Userids []string + type TemplateCardUpdateImage struct + ActionMenu ActionMenu + CardAction CardAction + CardImage CardImage + CardType string + HorizontalContentList []HorizontalContentList + ImageTextArea ImageTextArea + JumpList []JumpList + MainTitle MainTitle + QuoteArea QuoteArea + Source Source + VerticalContentList []VerticalContentList + type TemplateCardUpdateImageMessageOptions struct + Agentid int + Partyids []int + ResponseCode string + TemplateCard TemplateCardUpdateImage + Userids []string + type TemplateCardUpdateMessageOptions struct + Atall int + Tagids []int + TemplateCard TemplateCard + type TemplateCardUpdateText struct + ActionMenu ActionMenu + CardAction CardAction + CardType string + EmphasisContent EmphasisContent + HorizontalContentList []HorizontalContentList + JumpList []JumpList + MainTitle MainTitle + QuoteArea QuoteArea + Source Source + SubTitleText string + type TemplateCardUpdateTextMessageOptions struct + Agentid int + Partyids []int + ResponseCode string + TemplateCard TemplateCardUpdateText + Userids []string + type TemplateCardUpdateVote struct + CardType string + Checkbox CheckboxUpdateVote + MainTitle MainTitle + ReplaceText string + Source SourceVote + SubmitButton SubmitButton + type TemplateCardUpdateVoteMessageOptions struct + Agentid int + Partyids []int + ResponseCode string + TemplateCard TemplateCardUpdateVote + Userids []string + type TemplateCardVote struct + CardType string + Checkbox Checkbox + MainTitle MainTitle + Source SourceVote + SubmitButton SubmitButton + TaskID string + type TemplateCardVoteMessageOptions struct + TemplateCard TemplateCardVote + type TemplateCardVoteResponseMessage struct + CreateTime int + FromUserName string + MsgType string + TemplateCard VoteTemplateCard + ToUserName string + type Text struct + Content string + type TextActionList struct + Key string + Text string + type TextActionMenu struct + ActionList []TextActionList + Desc string + type TextCardAction struct + Title string + Type int + URL string + type TextEmphasisContent struct + Desc string + Title string + type TextHorizontalContentList struct + KeyName string + Type int + URL string + Value string + type TextJumpList struct + Title string + Type int + URL string + type TextMainTitle struct + Desc string + Title string + type TextMessageOptions struct + Text Text + type TextQuoteArea struct + QuoteText string + Title string + Type int + URL string + type TextResponseMessage struct + Content string + type TextSource struct + Desc string + DescColor int + IconURL string + type TextTemplateCard struct + ActionMenu TextActionMenu + CardAction TextCardAction + CardType string + EmphasisContent TextEmphasisContent + HorizontalContentList []TextHorizontalContentList + JumpList TextJumpList + MainTitle TextMainTitle + QuoteArea TextQuoteArea + Source TextSource + SubTitleText string + type Textcard struct + Btntxt string + Description string + Title string + URL string + type TextcardMessageOptions struct + Textcard Textcard + type UpdateGroupOptions struct + AddUserList []string + Chatid string + DelUserList []string + Name string + Owner string + type UpdatePartyCallbackMessage struct + Id int + Name string + ParentId int + type UpdateTagCallbackMessage struct + AddPartyItems []int + AddUserItems []string + DelPartyItems []int + DelUserItems []string + TagId int + type UpdateUserCallbackMessage struct + NewUserID string + type VerticalContentList struct + Desc string + Title string + type Video struct + Description string + MediaID string + Title string + type VideoMessageOptions struct + Video Video + type VideoResponseMessage struct + Video ResponseVideo + type ViewCallbackMessage struct + AgentID int + EventKey string + type Voice struct + MediaID string + Name string + Size int + type VoiceMessageOptions struct + Voice Voice + type VoiceResponseMessage struct + Voice ResponseVoice + type VoteCheckBox struct + Disable bool + Mode int + OptionList []VoteOptionList + QuestionKey string + type VoteMainTitle struct + Desc string + Title string + type VoteOptionList struct + ID string + IsChecked bool + Text string + type VoteSource struct + Desc string + IconURL string + type VoteSubmitButton struct + Key string + Text string + type VoteTemplateCard struct + CardType string + CheckBox VoteCheckBox + MainTitle VoteMainTitle + ReplaceText string + Source VoteSource + SubmitButton VoteSubmitButton