From d5ece277704cd23c49e70bb17b3388c5c8a84c0f Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 24 Aug 2016 22:33:19 +0200 Subject: [PATCH] =?UTF-8?q?Kein=20Text=20f=C3=BCr=20send=5Fvoice=20und=20s?= =?UTF-8?q?end=5Faudio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/media.lua | 4 ++-- otouto/utilities.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/otouto/plugins/media.lua b/otouto/plugins/media.lua index dac3d12..5244a0b 100644 --- a/otouto/plugins/media.lua +++ b/otouto/plugins/media.lua @@ -40,9 +40,9 @@ function media:action(msg, config, matches) if ext == 'gif' then result = utilities.send_document(receiver, file, nil, msg.message_id) elseif ext == 'ogg' then - result = utilities.send_voice(receiver, file, nil, msg.message_id) + result = utilities.send_voice(receiver, file, msg.message_id) elseif mime_type == 'audio' then - result = utilities.send_audio(receiver, file, nil, msg.message_id) + result = utilities.send_audio(receiver, file, msg.message_id) elseif mime_type == 'video' then result = utilities.send_video(receiver, file, nil, msg.message_id) else diff --git a/otouto/utilities.lua b/otouto/utilities.lua index 2889b4f..b7effed 100644 --- a/otouto/utilities.lua +++ b/otouto/utilities.lua @@ -197,7 +197,7 @@ end -- NOTE: Voice messages are .ogg files encoded with OPUS -- https://core.telegram.org/bots/api#sendvoice -function utilities.send_voice(chat_id, file, text, reply_to_message_id, duration) +function utilities.send_voice(chat_id, file, reply_to_message_id, duration) if not file then return false end local output = bindings.request( 'sendVoice',