https://github.com/ronething/pc-wechat-bot-client
pc wechat golang 客户端
https://github.com/ronething/pc-wechat-bot-client
golang http websocket wechat
Last synced: 4 months ago
JSON representation
pc wechat golang 客户端
- Host: GitHub
- URL: https://github.com/ronething/pc-wechat-bot-client
- Owner: ronething
- License: mit
- Created: 2020-12-16T16:58:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T17:23:02.000Z (about 5 years ago)
- Last Synced: 2023-03-03T21:32:43.435Z (almost 3 years ago)
- Topics: golang, http, websocket, wechat
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [wechat-bot-go](#wechat-bot-go)
- [**接收**消息类型](#%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%E7%B1%BB%E5%9E%8B)
- [acknowledgement](#acknowledgement)
### wechat-bot-go
wechat bot golang client
### **接收**消息类型
- 群文本消息
```json
{
"content":"高速老是在修路",
"id":"20201211160304",
"receiver":"xxxx@chatroom",
"sender":"wxid_xxxxxx",
"srvid":1,
"time":"2020-12-11 16:03:04",
"type":1
}
```
注意到 receiver 为群聊 roomid, sender 为发送的人
- 个人文本消息
```json
{
"content":"?",
"id":"20201211160346",
"receiver":"self",
"sender":"wxid_xxxx",
"srvid":1,
"time":"2020-12-11 16:03:46",
"type":1
}
```
注意到 receiver 为 self,也就是说接收个人消息的话可以通过这个 key 来进行判断
### acknowledgement
- [wechat-bot](https://github.com/cixingguangming55555/wechat-bot)