Pixabay: Links als InlineKeyboard-Buttons

This commit is contained in:
Andreas Bielawski 2016-07-03 14:09:45 +02:00
parent 81827df897
commit 60c252ff34

View File

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