autoreply

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgTypeText  core.MsgType = "text"  // 文本消息
	MsgTypeImage core.MsgType = "image" // 图片消息
	MsgTypeVoice core.MsgType = "voice" // 语音消息
	MsgTypeVideo core.MsgType = "video" // 视频消息
	MsgTypeNews  core.MsgType = "news"  // 图文消息
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoReply

type AutoReply struct {
	IsAddFriendReplyOpen   int `json:"is_add_friend_reply_open,omitempty"`
	IsAutoreplyOpen        int `json:"is_autoreply_open,omitempty"`
	AddFriendAutoreplyInfo struct {
		Type    string `json:"type,omitempty"`
		Content string `json:"content,omitempty"`
	} `json:"add_friend_autoreply_info"`
	MessageDefaultAutoreplyInfo struct {
		Type    string `json:"type,omitempty"`
		Content string `json:"content,omitempty"`
	} `json:"message_default_autoreply_info"`
	KeywordAutoreplyInfo struct {
		List []KeywordAutoreplyInfo `json:"list,omitempty"`
	} `json:"keyword_autoreply_info"`
}

func Get

func Get(clt *core.Client) (ar *AutoReply, err error)

查询自动回复规则

type KeywordAutoreplyInfo

type KeywordAutoreplyInfo struct {
	RuleName        string            `json:"rule_name,omitempty"`
	CreateTime      int64             `json:"create_time,omitempty"`
	ReplyMode       string            `json:"reply_mode,omitempty"`
	KeywordListInfo []KeywordListInfo `json:"keyword_list_info,omitempty"`
	ReplyListInfo   []ReplyListInfo   `json:"reply_list_info,omitempty"`
}

type KeywordListInfo

type KeywordListInfo struct {
	Type      string `json:"type,omitempty"`
	MatchMode string `json:"match_mode,omitempty"`
	Content   string `json:"content,omitempty"`
}

type NewsInfo

type NewsInfo struct {
	Title      string `json:"title,omitempty"`
	Author     string `json:"author,omitempty"`
	Digest     string `json:"digest,omitempty"`
	ShowCover  int    `json:"show_cover,omitempty"`
	CoverUrl   string `json:"cover_url,omitempty"`
	ContentUrl string `json:"content_url,omitempty"`
	SourceUrl  string `json:"source_url,omitempty"`
}

type ReplyListInfo

type ReplyListInfo struct {
	Type     string `json:"type,omitempty"`
	Content  string `json:"content,omitempty"`
	NewsInfo struct {
		List []NewsInfo `json:"list,omitempty"`
	} `json:"news_info"`
}

Jump to

Keyboard shortcuts

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