From 10a33dd585b80601adc85a5db4433dde30adeb5a Mon Sep 17 00:00:00 2001 From: Andrey Sevrikov Date: Tue, 24 Apr 2018 18:46:07 +0300 Subject: [PATCH] Fix voice handlers not firing --- bot.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot.go b/bot.go index 269b8dc..df79ea9 100644 --- a/bot.go +++ b/bot.go @@ -398,6 +398,11 @@ func (b *Bot) handleMedia(m *Message) bool { return true } + if m.Voice != nil { + b.handle(OnVoice, m) + return true + } + if m.Audio != nil { b.handle(OnAudio, m) return true