Versions in this module Expand all Collapse all v0 v0.0.2 Jan 30, 2026 v0.0.1 Jan 29, 2026 Changes in this version + type Article struct + Description string + PicUrl string + Title string + Url string + type ArticleCollection struct + Items []*Article + type ClickEventMessage struct + func (m *ClickEventMessage) GetKind() Kind + func (m *ClickEventMessage) Reply() ([]byte, error) + type Handler func(Messager) ([]byte, error) + type Image struct + MediaId string + type ImageNormalMessage struct + func (m *ImageNormalMessage) GetKind() Kind + type ImageReply struct + CreateTime int64 + FromUserName string + Image *Image + MsgType string + ToUserName string + XMLName xml.Name + type Kind int + const MessageKindEventClick + const MessageKindEventLocation + const MessageKindEventSubscribe + const MessageKindEventSubscribedScan + const MessageKindEventUnSubscribe + const MessageKindEventUnSubscribedScan + const MessageKindEventView + const MessageKindNormalImage + const MessageKindNormalLink + const MessageKindNormalLocation + const MessageKindNormalShortVideo + const MessageKindNormalText + const MessageKindNormalVideo + const MessageKindNormalVoice + const MessageKindUnknown + type LinkNormalMessage struct + func (m *LinkNormalMessage) GetKind() Kind + type LocationEventMessage struct + func (m *LocationEventMessage) Reply() ([]byte, error) + func (m LocationEventMessage) GetKind() Kind + type LocationNormalMessage struct + func (m *LocationNormalMessage) GetKind() Kind + type Message struct + Content string + CreateTime int64 + Event string + EventKey string + Format string + FromUserName string + Idx int + Latitude float64 + Longitude float64 + MediaId string + MediaId16K string + MsgDataId string + MsgId int64 + MsgType string + PicUrl string + Precision float64 + ThumbMediaId string + Ticket string + ToUserName string + XMLName xml.Name + func (m *Message) GetMessage() *Message + func (m *Message) Reply() ([]byte, error) + func (m *Message) ReplyImage(img *Image) ([]byte, error) + func (m *Message) ReplyMusic(music *Music) ([]byte, error) + func (m *Message) ReplyNews(articles []*Article) ([]byte, error) + func (m *Message) ReplyText(content string) ([]byte, error) + func (m *Message) ReplyVideo(video *Video) ([]byte, error) + func (m *Message) ReplyVoice(voice *Voice) ([]byte, error) + type Messager interface + GetKind func() Kind + GetMessage func() *Message + Reply func() ([]byte, error) + func New(data []byte) (Messager, error) + type Music struct + Description string + HQMusicUrl string + MusicUrl string + ThumbMediaId string + Title string + type MusicReply struct + CreateTime int64 + FromUserName string + MsgType string + Music *Music + ToUserName string + XMLName xml.Name + type NewsReply struct + ArticleCount int + Articles *ArticleCollection + CreateTime int64 + FromUserName string + MsgType string + ToUserName string + XMLName xml.Name + type ShortVideoNormalMessage struct + func (m *ShortVideoNormalMessage) GetKind() Kind + type SubscribeEventMessage struct + func (m *SubscribeEventMessage) GetKind() Kind + func (m *SubscribeEventMessage) Reply() ([]byte, error) + type SubscribedScanEventMessage struct + func (m *SubscribedScanEventMessage) GetKind() Kind + func (m *SubscribedScanEventMessage) Reply() ([]byte, error) + type TextNormalMessage struct + func (m *TextNormalMessage) GetKind() Kind + type TextReply struct + Content string + CreateTime int64 + FromUserName string + MsgType string + ToUserName string + XMLName xml.Name + type UnSubscribeEventMessage struct + func (m *UnSubscribeEventMessage) GetKind() Kind + func (m *UnSubscribeEventMessage) Reply() ([]byte, error) + type UnSubscribedScanEventMessage struct + func (m *UnSubscribedScanEventMessage) GetKind() Kind + func (m *UnSubscribedScanEventMessage) Reply() ([]byte, error) + type Video struct + Description string + MediaId string + Title string + type VideoNormalMessage struct + func (m *VideoNormalMessage) GetKind() Kind + type VideoReply struct + CreateTime int64 + FromUserName string + MsgType string + ToUserName string + Video *Video + XMLName xml.Name + type ViewEventMessage struct + func (m *ViewEventMessage) GetKind() Kind + func (m *ViewEventMessage) Handle() ([]byte, error) + type Voice struct + MediaId string + type VoiceNormalMessage struct + func (m *VoiceNormalMessage) GetKind() Kind + type VoiceReply struct + CreateTime int64 + FromUserName string + MsgType string + ToUserName string + Voice *Voice + XMLName xml.Name