From 60c252ff34b6edd73459b067ac2e84136c93e8cf Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sun, 3 Jul 2016 14:09:45 +0200 Subject: [PATCH] Pixabay: Links als InlineKeyboard-Buttons --- otouto/plugins/pixabay.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otouto/plugins/pixabay.lua b/otouto/plugins/pixabay.lua index 26f5787..6d0fb54 100644 --- a/otouto/plugins/pixabay.lua +++ b/otouto/plugins/pixabay.lua @@ -111,8 +111,8 @@ function pixabay:action(msg, config, matches) else utilities.send_typing(self, msg.chat.id, 'upload_photo') local file = download_to_file(url) - local text = tags..' von '..user..':\nSeite: '..page_url..'\nVoll: '..full_url..' (Login notwendig)' - utilities.send_photo(self, msg.chat.id, file, text, msg.message_id) + local text = '"'..tags..'" von '..user + utilities.send_photo(self, msg.chat.id, file, text, msg.message_id, '{"inline_keyboard":[[{"text":"Seite aufrufen","url":"'..page_url..'"},{"text":"Volles Bild (Login notwendig)","url":"'..full_url..'"}]]}') return end end