message

package
v2.0.1-beta11 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func (*Client) Recall

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

Recall 撤回应用消息 https://open.work.weixin.qq.com/api/doc/90000/90135/94867

func (*Client) Send

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

发送应用消息 https://work.weixin.qq.com/api/doc/90000/90135/90236

func (*Client) SendFile

SendFile 文件消息

func (*Client) SendImage

SendImage 图片消息

func (*Client) SendMarkdown

func (comp *Client) SendMarkdown(messages *request.RequestMessageSendMarkdown) (*response.ResponseMessageSend, error)

SendMarkdown markdown消息

func (*Client) SendMiniProgramNotice

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

SendMiniProgramNotice 小程序通知消息

func (*Client) SendMpNews

func (comp *Client) SendMpNews(messages *request.RequestMessageSendMPNews) (*response.ResponseMessageSend, error)

SendMpNews 图文消息(mpnews)

func (*Client) SendNews

SendNews 图文消息

func (*Client) SendTemplateCard

func (comp *Client) SendTemplateCard(messages *request.RequestMessageSendTemplateCard) (*response.ResponseMessageSend, error)

SendTemplateCard 发送卡片模版

func (*Client) SendText

SendText 文本消息

func (*Client) SendTextCard

func (comp *Client) SendTextCard(messages *request.RequestMessageSendTextCard) (*response.ResponseMessageSend, error)

SendTextCard 文本卡片消息

func (*Client) SendVideo

SendVideo 视频消息

func (*Client) SendVoice

SendVoice 语音消息

func (*Client) UpdateTemplateCard

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

更新模版卡片消息 https://work.weixin.qq.com/api/doc/90000/90135/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 (msg *Messager) Send(message *messages.Message) (*response.ResponseMessageSend, error)

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