gImages fix
This commit is contained in:
parent
4757d846c4
commit
125abf62d8
@ -72,7 +72,7 @@ function gImages:cache_result(results, text)
|
|||||||
cache_data('gImages', string.lower(text), cache, 1209600, 'set')
|
cache_data('gImages', string.lower(text), cache, 1209600, 'set')
|
||||||
end
|
end
|
||||||
|
|
||||||
function gImages:send_image(msg, input)
|
function gImages:send_image(msg, input, config)
|
||||||
utilities.send_typing(msg.chat.id, 'upload_photo')
|
utilities.send_typing(msg.chat.id, 'upload_photo')
|
||||||
|
|
||||||
local hash = 'telegram:cache:gImages'
|
local hash = 'telegram:cache:gImages'
|
||||||
@ -144,7 +144,7 @@ function gImages:callback(callback, msg, self, config, input)
|
|||||||
else
|
else
|
||||||
utilities.answer_callback_query(callback, 'Suche nochmal nach "'..input..'"')
|
utilities.answer_callback_query(callback, 'Suche nochmal nach "'..input..'"')
|
||||||
end
|
end
|
||||||
gImages:send_image(msg, input)
|
gImages:send_image(msg, input, config)
|
||||||
end
|
end
|
||||||
|
|
||||||
function gImages:action(msg, config, matches)
|
function gImages:action(msg, config, matches)
|
||||||
@ -164,7 +164,7 @@ function gImages:action(msg, config, matches)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
gImages:send_image(msg, input)
|
gImages:send_image(msg, input, config)
|
||||||
end
|
end
|
||||||
|
|
||||||
return gImages
|
return gImages
|
Reference in New Issue
Block a user