cowsay Inline jetzt mit Bild und Text

This commit is contained in:
Akamaru 2016-08-24 23:44:45 +02:00
parent 39e2333ecf
commit d5cb66c4af

View File

@ -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