1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-03-01 00:35:26 +08:00

新增消息推送模块,实现部分常用消息推送:SendText 发送文本消息、SendImage 发送图片消息、SendVoice 发送语音消息 (#649)

企业微信消息推送接口:https://qyapi.weixin.qq.com/cgi-bin/message/send
This commit is contained in:
just5325
2023-02-10 17:11:02 +08:00
committed by GitHub
parent 6e80b71cb2
commit 429219b53f
3 changed files with 154 additions and 0 deletions

16
work/message/client.go Normal file
View File

@@ -0,0 +1,16 @@
// Package message 消息推送,实现企业微信消息推送相关接口https://developer.work.weixin.qq.com/document/path/90235
package message
import (
"github.com/silenceper/wechat/v2/work/context"
)
// Client 消息推送接口实例
type Client struct {
*context.Context
}
// NewClient 初始化实例
func NewClient(ctx *context.Context) *Client {
return &Client{ctx}
}