message

package
v0.0.0-...-15a7b9f Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TEXT        = 2
	IMAGE       = 4
	VOICE       = 8
	VIDEO       = 16
	SHORT_VIDEO = 32
	LOCATION    = 64
	LINK        = 128
	// DEVICE_EVENT       = 256
	// DEVICE_TEXT        = 512
	FILE = 1024
	// TEXT_CARD          = 2048 //预留
	// TRANSFER           = 4096
	EVENT            = 8192
	MINIPROGRAM_PAGE = 2097152
)

//Message type

Variables

View Source
var DefaultMessage = map[string]MessageType{
	"text":            TEXT,
	"image":           IMAGE,
	"voice":           VOICE,
	"video":           VIDEO,
	"file":            FILE,
	"shortvideo":      SHORT_VIDEO,
	"location":        LOCATION,
	"link":            LINK,
	"event":           EVENT,
	"miniprogrampage": MINIPROGRAM_PAGE,
}

Functions

This section is empty.

Types

type MessageType

type MessageType = int

MessageType 注意int为2的n次方

Jump to

Keyboard shortcuts

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