groupRobot

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 9 Imported by: 1

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 {
	BaseClient *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 (*Client) SendImage

func (*Client) SendMarkdown

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

func (*Client) SendNewsArticles

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

SendNewsArticles 图文类型

func (*Client) SendTemplateCard

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

func (*Client) SendText

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