MCPcopy
hub / github.com/eatmoreapple/openwechat / IsText

Method IsText

message.go:220–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218}
219
220func (m *Message) IsText() bool {
221 return m.MsgType == MsgTypeText && m.Url == ""
222}
223
224func (m *Message) IsLocation() bool {
225 return m.MsgType == MsgTypeText && strings.Contains(m.Url, "apis.map.qq.com") && strings.Contains(m.Content, "pictype=location")

Callers 3

TestLogoutFunction · 0.80
TestMessageHandleFunction · 0.80
OnTextMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestLogoutFunction · 0.64
TestMessageHandleFunction · 0.64