From d525f1c9e4ac39b74575052b61c4de72de794b4e Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 26 Aug 2019 23:22:34 +0200 Subject: Update Rhymen/go-whatsapp vendor (#876) --- vendor/github.com/Rhymen/go-whatsapp/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/Rhymen/go-whatsapp/README.md') diff --git a/vendor/github.com/Rhymen/go-whatsapp/README.md b/vendor/github.com/Rhymen/go-whatsapp/README.md index b90d2991..1248b8f9 100644 --- a/vendor/github.com/Rhymen/go-whatsapp/README.md +++ b/vendor/github.com/Rhymen/go-whatsapp/README.md @@ -50,17 +50,25 @@ func (myHandler) HandleImageMessage(message whatsapp.ImageMessage) { fmt.Println(message) } +func (myHandler) HandleDocumentMessage(message whatsapp.DocumentMessage) { + fmt.Println(message) +} + func (myHandler) HandleVideoMessage(message whatsapp.VideoMessage) { fmt.Println(message) } +func (myHandler) HandleAudioMessage(message whatsapp.AudioMessage){ + fmt.Println(message) +} + func (myHandler) HandleJsonMessage(message string) { fmt.Println(message) } wac.AddHandler(myHandler{}) ``` -The message handlers are all optional, you don't need to implement anything but the error handler to implement the interface. The ImageMessage and VideoMessage provide a Download function to get the media data. +The message handlers are all optional, you don't need to implement anything but the error handler to implement the interface. The ImageMessage, VideoMessage, AudioMessage and DocumentMessage provide a Download function to get the media data. ### Sending text messages ```go -- cgit v1.2.3