message

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActionCardMessage

func NewActionCardMessage() *actionCardMessage

func NewAt

func NewAt(atMobiles []string, isAtAll bool) *at

new at

func NewFeedCardMessage

func NewFeedCardMessage() *feedCardMessage

func NewLinkMessage

func NewLinkMessage() *linkMessage

func NewMarkdownMessage

func NewMarkdownMessage() *markdownMessage

func NewMessage

func NewMessage(msgtype string) message

new message

func NewTextMessage

func NewTextMessage() *textMessage

Types

type Btn

type Btn struct {
	Title     string `json:"title"`
	ActionURL string `json:"actionURL"`
}

type Builder

type Builder interface {
	Build() (m message)
}

Builder

type Links struct {
	Title      string `json:"title"`      //单条信息文本
	MessageURL string `json:"messageURL"` //点击单条信息到跳转链接
	PicURL     string `json:"picURL"`     //单条信息后面图片的URL
}

Jump to

Keyboard shortcuts

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