robot

package
v0.0.0-...-8468317 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Emoticon

type Emoticon struct {
	XMLName xml.Name `xml:"msg"`
	Text    string   `xml:",chardata"`
	Emoji   struct {
		Text              string `xml:",chardata"`
		Fromusername      string `xml:"fromusername,attr"`
		Tousername        string `xml:"tousername,attr"`
		Type              string `xml:"type,attr"`
		Idbuffer          string `xml:"idbuffer,attr"`
		Md5               string `xml:"md5,attr"`
		Len               string `xml:"len,attr"`
		Productid         string `xml:"productid,attr"`
		Androidmd5        string `xml:"androidmd5,attr"`
		Androidlen        string `xml:"androidlen,attr"`
		S60v3md5          string `xml:"s60v3md5,attr"`
		S60v3len          string `xml:"s60v3len,attr"`
		S60v5md5          string `xml:"s60v5md5,attr"`
		S60v5len          string `xml:"s60v5len,attr"`
		Cdnurl            string `xml:"cdnurl,attr"`
		Designerid        string `xml:"designerid,attr"`
		Thumburl          string `xml:"thumburl,attr"`
		Encrypturl        string `xml:"encrypturl,attr"`
		Aeskey            string `xml:"aeskey,attr"`
		Externurl         string `xml:"externurl,attr"`
		Externmd5         string `xml:"externmd5,attr"`
		Width             string `xml:"width,attr"`
		Height            string `xml:"height,attr"`
		Tpurl             string `xml:"tpurl,attr"`
		Tpauthkey         string `xml:"tpauthkey,attr"`
		Attachedtext      string `xml:"attachedtext,attr"`
		Attachedtextcolor string `xml:"attachedtextcolor,attr"`
		Lensid            string `xml:"lensid,attr"`
		Emojiattr         string `xml:"emojiattr,attr"`
		Linkid            string `xml:"linkid,attr"`
		Desc              string `xml:"desc,attr"`
	} `xml:"emoji"`
}

Emoticon 表情包类型,并不是emoji的类型

func UnMarshalForEmoticon

func UnMarshalForEmoticon(data string) (emoticon *Emoticon, err error)

type JsonLocalStorage

type JsonLocalStorage struct {
	FileName string
	// contains filtered or unexported fields
}

func (*JsonLocalStorage) Read

func (j *JsonLocalStorage) Read(p []byte) (n int, err error)

func (*JsonLocalStorage) Write

func (j *JsonLocalStorage) Write(p []byte) (n int, err error)

type Message

type Message struct {
	*openwechat.Message
}

func (*Message) Receiver

func (m *Message) Receiver() (*User, error)

func (*Message) Sender

func (m *Message) Sender() (*User, error)

func (*Message) SenderInGroup

func (m *Message) SenderInGroup() (*User, error)

type User

type User struct {
	*openwechat.User
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL