From 293e5ba5898ec9c38cd85d4ab7e9f3ea72e33ba5 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 1 Aug 2016 16:38:52 +0200 Subject: [PATCH] =?UTF-8?q?Media:=20send=5Fvoice=20f=C3=BCr=20OGG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/media.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/otouto/plugins/media.lua b/otouto/plugins/media.lua index 207e5e4..f0b0423 100644 --- a/otouto/plugins/media.lua +++ b/otouto/plugins/media.lua @@ -42,6 +42,9 @@ function media:action(msg) if ext == 'gif' then print('send gif') result = utilities.send_document(self, receiver, file, nil, msg.message_id) + elseif ext == 'ogg' then + print('send ogg') + result = utilities.send_voice(self, receiver, file, nil, msg.message_id) elseif mime_type == 'audio' then print('send_audio') result = utilities.send_audio(self, receiver, file, nil, msg.message_id)