cowsay Inline jetzt mit Bild und Text
This commit is contained in:
parent
39e2333ecf
commit
d5cb66c4af
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user