Comments (6)
// all msg
bot.Handle(/msg, func(evt wechat.Event) {
data := evt.Data.(wechat.EventMsgData)
fmt.Println(`new msg:` + data.Content)
})
from ggbot.
So that means ggbot
can only handle text messages?
I.e., all else, message-in-url, images, voices, videos, etc, etc are not supported by wechat
?
from ggbot.
type EventMsgData struct {
IsGroupMsg bool
IsMediaMsg bool
IsSendedByMySelf bool
MsgType int64
AtMe bool
MediaURL string
Content string
FromUserName string
SenderUserName string
ToUserName string
OriginalMsg map[string]interface{}
}
from ggbot.
I don't quite understand what you are trying to say, but taking a wild-guess, I guess the answer is "yes" to my question, right? i.e., ggbot can only handle/save text messages, not the others I listed above.
What are the valid values for MsgType
BTW?
from ggbot.
You need more patient&time to analysis http request&&response, because WECHAT
web api has no official support.
from ggbot.
alright
from ggbot.
Related Issues (9)
- 收到红包不能提示不能抢,作者快点 HOT 1
- 类型不匹配,这是换包了吗
- iOS下的功能什么时候出来 HOT 1
- 登录cookies超时太短 HOT 1
- 请增加群管理员功能 HOT 1
- 发送语音显示的是mp3下载 HOT 4
- 问一下底层用的技术 HOT 3
- How long a session can last? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggbot.