Versions in this module Expand all Collapse all v1 v1.0.0 Nov 10, 2022 Changes in this version + type Button struct + AppID string + Key string + MediaID string + Name string + PagePath string + SubButtons []*Button + Type string + URL string + func NewClickButton(name, key string) *Button + func NewLocationSelectButton(name, key string) *Button + func NewMediaIDButton(name, mediaID string) *Button + func NewMiniprogramButton(name, url, appID, pagePath string) *Button + func NewPicPhotoOrAlbumButton(name, key string) *Button + func NewPicSysPhotoButton(name, key string) *Button + func NewPicWeixinButton(name, key string) *Button + func NewScanCodePushButton(name, key string) *Button + func NewScanCodeWaitMsgButton(name, key string) *Button + func NewSubButton(name string, subButtons []*Button) *Button + func NewViewButton(name, url string) *Button + func NewViewLimitedButton(name, mediaID string) *Button + func (btn *Button) SetClickButton(name, key string) *Button + func (btn *Button) SetLocationSelectButton(name, key string) *Button + func (btn *Button) SetMediaIDButton(name, mediaID string) *Button + func (btn *Button) SetMiniprogramButton(name, url, appID, pagePath string) *Button + func (btn *Button) SetPicPhotoOrAlbumButton(name, key string) *Button + func (btn *Button) SetPicSysPhotoButton(name, key string) *Button + func (btn *Button) SetPicWeixinButton(name, key string) *Button + func (btn *Button) SetScanCodePushButton(name, key string) *Button + func (btn *Button) SetScanCodeWaitMsgButton(name, key string) *Button + func (btn *Button) SetSubButton(name string, subButtons []*Button) *Button + func (btn *Button) SetViewButton(name, url string) *Button + func (btn *Button) SetViewLimitedButton(name, mediaID string) *Button + type ButtonNew struct + Author string + ContentURL string + CoverURL string + Digest string + ShowCover int32 + SourceURL string + Title string + type MatchRule struct + City string + ClientPlatformType string + Country string + GroupID string + Language string + Province string + Sex string + type Menu struct + func NewMenu(context *context.Context) *Menu + func (menu *Menu) AddConditional(buttons []*Button, matchRule *MatchRule) error + func (menu *Menu) AddConditionalByJSON(jsonInfo string) error + func (menu *Menu) DeleteConditional(menuID int64) error + func (menu *Menu) DeleteMenu() error + func (menu *Menu) GetCurrentSelfMenuInfo() (resSelfMenuInfo ResSelfMenuInfo, err error) + func (menu *Menu) GetMenu() (resMenu ResMenu, err error) + func (menu *Menu) MenuTryMatch(userID string) (buttons []Button, err error) + func (menu *Menu) SetMenu(buttons []*Button) error + func (menu *Menu) SetMenuByJSON(jsonInfo string) error + type ResMenu struct + Conditionalmenu []resConditionalMenu + Menu struct{ ... } + type ResSelfMenuInfo struct + IsMenuOpen int32 + SelfMenuInfo struct{ ... } + type SelfMenuButton struct + Key string + Name string + NewsInfo struct{ ... } + SubButton struct{ ... } + Type string + URL string + Value string