hotime/vendor/github.com/silenceper/wechat/v2/officialaccount/message/voice.go
2022-05-24 13:49:25 +08:00

18 lines
280 B
Go

package message
// Voice 语音消息
type Voice struct {
CommonToken
Voice struct {
MediaID string `xml:"MediaId"`
} `xml:"Voice"`
}
// NewVoice 回复语音消息
func NewVoice(mediaID string) *Voice {
voice := new(Voice)
voice.Voice.MediaID = mediaID
return voice
}