messages

package
v0.0.0-...-693f7c6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmoticonMsg

type EmoticonMsg struct {
	// contains filtered or unexported fields
}

EmoticonMsg is wechat emoticon msg

func NewEmoticonMsgMsg

func NewEmoticonMsgMsg(mid, to string) *EmoticonMsg

NewEmoticonMsgMsg create a new instance

func (*EmoticonMsg) Content

func (msg *EmoticonMsg) Content() map[string]interface{}

Content text msg's content

func (*EmoticonMsg) Description

func (msg *EmoticonMsg) Description() string

func (*EmoticonMsg) Path

func (msg *EmoticonMsg) Path() string

Path is text msg's api path

func (*EmoticonMsg) String

func (msg *EmoticonMsg) String() string

func (*EmoticonMsg) To

func (msg *EmoticonMsg) To() string

To destination

type FileMsg

type FileMsg struct {
	// contains filtered or unexported fields
}

FileMsg struct

func NewFileMsg

func NewFileMsg(mediaID, to, name, ext string) *FileMsg

NewFileMsg construct a new FileMsg's instance

func NewImageMsg

func NewImageMsg(mediaID, to string) *FileMsg

NewImageMsg ..

func NewVideoMsg

func NewVideoMsg(mediaID, to string) *FileMsg

NewVideoMsg ..

func (*FileMsg) Content

func (msg *FileMsg) Content() map[string]interface{}

Content text msg's content

func (*FileMsg) Description

func (msg *FileMsg) Description() string

func (*FileMsg) Path

func (msg *FileMsg) Path() string

Path is text msg's api path

func (*FileMsg) String

func (msg *FileMsg) String() string

func (*FileMsg) To

func (msg *FileMsg) To() string

To destination

type TextMsg

type TextMsg struct {
	// contains filtered or unexported fields
}

TextMsg struct

func NewTextMsg

func NewTextMsg(text, to string) *TextMsg

NewTextMsg construct a new TextMsg's instance

func (*TextMsg) Content

func (msg *TextMsg) Content() map[string]interface{}

Content text msg's content

func (*TextMsg) Description

func (msg *TextMsg) Description() string

func (*TextMsg) Path

func (msg *TextMsg) Path() string

Path is text msg's api path

func (*TextMsg) String

func (msg *TextMsg) String() string

func (*TextMsg) To

func (msg *TextMsg) To() string

To destination

Jump to

Keyboard shortcuts

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