Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetContactList() ([]*Contact, error)
- func (c *Client) GetNickFormRoom(wxid, roomid string) (string, error)
- func (c *Client) GetPersonal() (*Info, error)
- func (c *Client) GetPersonalDetail(wxid string) (*Info, error)
- func (c *Client) LastHeartbeatTime() int64
- func (c *Client) QR() ([]byte, error)
- func (c *Client) RCon() error
- func (c *Client) SendAtMsg(content string, atWXid, to, nickname string) error
- func (c *Client) SendFile(path, wxid string) error
- func (c *Client) SendPicMsg(path, wxid string) error
- func (c *Client) SendTxt(content string, to string) error
- func (c *Client) SetOnWXmsg(onMsg func(msg []byte, Type int, reply *Reply))
- func (c *Client) ShutDown() error
- type Contact
- type Dic
- type ImgMsg
- type Info
- type Reply
- func (r *Reply) AtMsg(content string) error
- func (r *Reply) Bytes2Path(data []byte) (string, error)
- func (r *Reply) File(path string) error
- func (r *Reply) GetMsgID() string
- func (r *Reply) GetNick() string
- func (r *Reply) GetPrivateWxID() string
- func (r *Reply) GetWxID() string
- func (r *Reply) IsSendByFriend() bool
- func (r *Reply) IsSendByGroup() bool
- func (r *Reply) Msg(content string) error
- func (r *Reply) PicMsg(path string) error
- func (r *Reply) PrivateChat(content string) error
- func (r *Reply) PrivateFile(path string) error
- func (r *Reply) PrivatePicMsg(path string) error
Constants ¶
View Source
const AtMsg = 550
View Source
const AttatchFile = 5003
View Source
const ChatroomMemberNick = 5020
View Source
const HeartBeat = 5005
View Source
const PersonalDetail = 6550
View Source
const PersonalInfo = 6500
View Source
const PicMsg = 500
View Source
const RecvFileMsg = 49
View Source
const RecvPicMsg = 3
View Source
const RecvTxtMsg = 1
View Source
const TxtMsg = 555
View Source
const UserList = 5000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetContactList ¶
func (*Client) GetNickFormRoom ¶
func (*Client) GetPersonal ¶
func (*Client) LastHeartbeatTime ¶
func (*Client) SendAtMsg ¶
SendAtMsg *发送@消息 *content:消息内容 *atWXid:被@的人的wxid *to:群wxid *nickname:被@的人的昵称
func (*Client) SendFile ¶
SendFile *发送文件 *content:消息内容 *atWXid:被@的人的wxid *to:群wxid *nickname:被@的人的昵称
func (*Client) SendPicMsg ¶
SendPicMsg *发送图片信息 *content:消息内容 *atWXid:被@的人的wxid *to:群wxid *nickname:被@的人的昵称
func (*Client) SetOnWXmsg ¶
SetOnWXmsg type 1是文本 2是图片 3是文件
type Contact ¶
type Contact struct { Headimg string `json:"headimg"` Name string `json:"name"` Node int `json:"node"` Remarks string `json:"remarks"` Wxcode string `json:"wxcode"` Wxid string `json:"wxid"` }
Contact 联系人
type ImgMsg ¶
type ImgMsg struct { Content string `json:"content"` Detail string `json:"detail"` Id1 string `json:"id1"` Id2 string `json:"id2"` Thumb string `json:"thumb"` }
func ParsePictureMessage ¶
type Info ¶
type Info struct { BigHeadimg string `json:"big_headimg"` Cover string `json:"cover"` LittleHeadimg string `json:"little_headimg"` Signature string `json:"signature"` WxCode string `json:"wx_code"` WxHeadImage string `json:"wx_head_image"` WxId string `json:"wx_id"` WxName string `json:"wx_name"` Nick string `json:"nick"` }
Info 该结构体多个返回结果在公用不保证所有字段都有,自行判断
type Reply ¶
type Reply struct {
// contains filtered or unexported fields
}
Reply 快速回复
func (*Reply) IsSendByGroup ¶
func (*Reply) PrivateChat ¶
func (*Reply) PrivateFile ¶
func (*Reply) PrivatePicMsg ¶
Click to show internal directories.
Click to hide internal directories.