iedc-go/vendor/github.com/silenceper/wechat/message/voice.go

18 lines
278 B
Go
Raw Permalink Normal View History

2023-03-02 19:12:15 +00:00
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
}