summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/Rhymen/go-whatsapp/README.md
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-08-24 23:35:08 +0200
committerGitHub <noreply@github.com>2020-08-24 23:35:08 +0200
commit2f506425c25504662f50f49e742529195d63ff27 (patch)
tree47170c6086cee16549a695329a478fd49174c299 /vendor/github.com/Rhymen/go-whatsapp/README.md
parente8167ee3d73c47353eea1b0bd7062bd2fc3fc127 (diff)
downloadmatterbridge-msglm-2f506425c25504662f50f49e742529195d63ff27.tar.gz
matterbridge-msglm-2f506425c25504662f50f49e742529195d63ff27.tar.bz2
matterbridge-msglm-2f506425c25504662f50f49e742529195d63ff27.zip
Update whatsapp vendor and fix a panic (#1209)
* Fix another whatsapp panic * Update whatsapp vendor
Diffstat (limited to 'vendor/github.com/Rhymen/go-whatsapp/README.md')
-rw-r--r--vendor/github.com/Rhymen/go-whatsapp/README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/Rhymen/go-whatsapp/README.md b/vendor/github.com/Rhymen/go-whatsapp/README.md
index 5f439d55..f3c7ef58 100644
--- a/vendor/github.com/Rhymen/go-whatsapp/README.md
+++ b/vendor/github.com/Rhymen/go-whatsapp/README.md
@@ -70,6 +70,10 @@ func (myHandler) HandleContactMessage(message whatsapp.ContactMessage) {
fmt.Println(message)
}
+func (myHandler) HandleBatteryMessage(msg whatsapp.BatteryMessage) {
+ 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, VideoMessage, AudioMessage and DocumentMessage provide a Download function to get the media data.