From 125abf62d8de0e36d4f138992e95ad3a07a23480 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 5 Oct 2016 17:04:14 +0200 Subject: [PATCH] gImages fix --- otouto/plugins/gImages.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/otouto/plugins/gImages.lua b/otouto/plugins/gImages.lua index 58bc43b..cd166ea 100644 --- a/otouto/plugins/gImages.lua +++ b/otouto/plugins/gImages.lua @@ -72,7 +72,7 @@ function gImages:cache_result(results, text) cache_data('gImages', string.lower(text), cache, 1209600, 'set') end -function gImages:send_image(msg, input) +function gImages:send_image(msg, input, config) utilities.send_typing(msg.chat.id, 'upload_photo') local hash = 'telegram:cache:gImages' @@ -144,7 +144,7 @@ function gImages:callback(callback, msg, self, config, input) else utilities.answer_callback_query(callback, 'Suche nochmal nach "'..input..'"') end - gImages:send_image(msg, input) + gImages:send_image(msg, input, config) end function gImages:action(msg, config, matches) @@ -164,7 +164,7 @@ function gImages:action(msg, config, matches) return end - gImages:send_image(msg, input) + gImages:send_image(msg, input, config) end return gImages \ No newline at end of file