Skip to content

feat: support sending emoticon messages#501

Merged
eatmoreapple merged 1 commit intoeatmoreapple:masterfrom
liwh011:feat-emotion-support
Jun 10, 2024
Merged

feat: support sending emoticon messages#501
eatmoreapple merged 1 commit intoeatmoreapple:masterfrom
liwh011:feat-emotion-support

Conversation

@liwh011
Copy link
Contributor

@liwh011 liwh011 commented Jun 5, 2024

添加发送表情的方法。
可通过md5或文件两种方式发送:

// 可以通过解析他人表情消息的Content中的xml字符串来提取MD5
// 也可以自行计算文件MD5,前提是微信服务器已有该表情
msg.ReplyEmoticon("md5 string", nil)

// 或以文件的形式
file, err := os.Open("path/to/image")
...
msg.ReplyEmoticon("", file)

@eatmoreapple eatmoreapple merged commit 58cd2da into eatmoreapple:master Jun 10, 2024
Xavier9896 added a commit to Xavier9896/openwechat_source that referenced this pull request Dec 17, 2024
1. eatmoreapple#501 添加了表情支持,relations.go 中遗漏了对应方法添加
2. 部分文档未对 表情、视频 api 文档进行维护
eatmoreapple pushed a commit that referenced this pull request Dec 18, 2024
1. #501 添加了表情支持,relations.go 中遗漏了对应方法添加
2. 部分文档未对 表情、视频 api 文档进行维护
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants