This commit is contained in:
Andreas Bielawski 2016-10-04 16:02:12 +02:00
commit c08f11a5b0
2 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,7 @@ end
function site_header:action(msg, config, matches)
if not is_sudo(msg, config) then
utilities.send_reply(msg, config.errors.sudo, true)
return
end
local url = matches[2]

View File

@ -40,7 +40,7 @@ function steam:send_steam_data(data, msg)
local title = data.name
local price = steam:price_info(data.price_overview)
local text = '*'..title..'* _'..price..'_\n'..description
local text = '<b>'..title..'</b> <i>'..price..'</i>\n'..description
local image_url = data.header_image
return text, image_url
end
@ -52,7 +52,8 @@ function steam:action(msg, config, matches)
local text, image_url = steam:send_steam_data(data, msg)
utilities.send_typing(msg.chat.id, 'upload_photo')
utilities.send_photo(msg.chat.id, image_url, nil, msg.message_id)
utilities.send_reply(msg, text, true)
print(text)
utilities.send_reply(msg, text, 'HTML')
end
return steam