From d5cb66c4afe9408d53f8519ced080632a513ed4c Mon Sep 17 00:00:00 2001 From: Akamaru Date: Wed, 24 Aug 2016 23:44:45 +0200 Subject: [PATCH] cowsay Inline jetzt mit Bild und Text --- miku/plugins/cowsay.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miku/plugins/cowsay.lua b/miku/plugins/cowsay.lua index 45b177d..212e69f 100644 --- a/miku/plugins/cowsay.lua +++ b/miku/plugins/cowsay.lua @@ -17,7 +17,7 @@ function cowsay:inline_callback(inline_query, config, matches) local text = '```'..run_command('cowsay "'..input..'"')..'```' local text = text:gsub('\\', '\\\\') - local results = '[{"type":"article","id":"7912","title":"Muh!","input_message_content":{"message_text":"'..text..'","parse_mode":"Markdown"}}]' + local results = '[{"type":"article","id":"7912","title":"Muh!","description":"'..input..'","thumb_url":"http://img.ponywave.de/di/DQG2/cow.jpg","input_message_content":{"message_text":"'..text..'","parse_mode":"Markdown"}}]' utilities.answer_inline_query(inline_query, results, 2) end