message

package
v3.2.38 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 *messages.Message) *Messager

func (*Client) Recall

func (comp *Client) Recall(ctx context.Context, msgID string) (*response2.ResponseWork, error)

Recall 撤回应用消息 https://developer.work.weixin.qq.com/document/path/94867

func (*Client) Send

func (comp *Client) Send(ctx context.Context, messages interface{}) (*response.ResponseMessageSend, error)

发送应用消息 https://developer.work.weixin.qq.com/document/path/90236

func (*Client) SendFile

SendFile 文件消息

func (*Client) SendImage

SendImage 图片消息

func (*Client) SendMarkdown

SendMarkdown markdown消息

func (*Client) SendMiniProgramNotice

func (comp *Client) SendMiniProgramNotice(ctx context.Context, messages *request.RequestMessageSendMiniProgramNotice) (*response.ResponseMessageSend, error)

SendMiniProgramNotice 小程序通知消息

func (*Client) SendMpNews

SendMpNews 图文消息(mpnews)

func (*Client) SendNews

SendNews 图文消息

func (*Client) SendTemplateCard

SendTemplateCard 发送卡片模版

func (*Client) SendText

SendText 文本消息

func (*Client) SendTextCard

SendTextCard 文本卡片消息

func (*Client) SendVideo

SendVideo 视频消息

func (*Client) SendVoice

SendVoice 语音消息

func (*Client) UpdateTemplateCard

func (comp *Client) UpdateTemplateCard(ctx context.Context, card *power.HashMap) (*response.ResponseMessageSend, error)

更新模版卡片消息 https://developer.work.weixin.qq.com/document/path/94888

type Messager

type Messager struct {
	To      *power.HashMap
	AgentID int

	Client *Client
	// contains filtered or unexported fields
}

func NewMessager

func NewMessager(client *Client) *Messager

func (*Messager) Message

func (msg *Messager) Message(message contract.MessageInterface) *Messager

func (*Messager) OfAgent

func (msg *Messager) OfAgent(agentID int) *Messager

func (*Messager) Secretive

func (msg *Messager) Secretive() *Messager

func (*Messager) Send

func (*Messager) SetRecipients

func (msg *Messager) SetRecipients(ids interface{}, key string) *Messager

func (*Messager) ToParty

func (msg *Messager) ToParty(partyIDs interface{}) *Messager

func (*Messager) ToTag

func (msg *Messager) ToTag(tagIDs interface{}) *Messager

func (*Messager) ToUser

func (msg *Messager) ToUser(userIDs interface{}) *Messager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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