groupRobot

package
v2.0.1-beta28 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, *Messager, error)

Types

type Client

type Client struct {
	*kernel.BaseClient
}

func NewClient

func NewClient(app kernel.ApplicationInterface) (*Client, error)

func (*Client) Message

func (comp *Client) Message(message interface{}) (*Messager, error)

func (*Client) SendFile

func (comp *Client) SendFile(key string, message *request.GroupRobotMsgFile) (*response.ResponseGroupRobotSend, error)

func (*Client) SendImage

func (comp *Client) SendImage(key string, message *request.GroupRobotMsgImage) (*response.ResponseGroupRobotSend, error)

func (*Client) SendMarkdown

func (comp *Client) SendMarkdown(key string, message *request.GroupRobotMsgMarkdown) (*response.ResponseGroupRobotSend, error)

func (*Client) SendNewsArticles

func (comp *Client) SendNewsArticles(key string, message []*request.GroupRobotMsgNewsArticles) (*response.ResponseGroupRobotSend, error)

SendNewsArticles 图文类型

func (*Client) SendTemplateCard

func (comp *Client) SendTemplateCard(key string, message *request.GroupRobotMsgTemplateCard) (*response.ResponseGroupRobotSend, error)

func (*Client) SendText

func (comp *Client) SendText(key string, message *request.GroupRobotMsgText) (*response.ResponseGroupRobotSend, error)

type Messager

type Messager struct {
	*Client

	GroupKey string
	// contains filtered or unexported fields
}

func NewMessager

func NewMessager(client *Client) *Messager

func (*Messager) Message

func (comp *Messager) Message(message interface{}) (*Messager, error)

func (*Messager) ToGroup

func (comp *Messager) ToGroup(groupKey string) *Messager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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