Upstream
This commit is contained in:
commit
c08f11a5b0
@ -10,6 +10,7 @@ end
|
|||||||
function site_header:action(msg, config, matches)
|
function site_header:action(msg, config, matches)
|
||||||
if not is_sudo(msg, config) then
|
if not is_sudo(msg, config) then
|
||||||
utilities.send_reply(msg, config.errors.sudo, true)
|
utilities.send_reply(msg, config.errors.sudo, true)
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local url = matches[2]
|
local url = matches[2]
|
||||||
|
@ -40,7 +40,7 @@ function steam:send_steam_data(data, msg)
|
|||||||
local title = data.name
|
local title = data.name
|
||||||
local price = steam:price_info(data.price_overview)
|
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
|
local image_url = data.header_image
|
||||||
return text, image_url
|
return text, image_url
|
||||||
end
|
end
|
||||||
@ -52,7 +52,8 @@ function steam:action(msg, config, matches)
|
|||||||
local text, image_url = steam:send_steam_data(data, msg)
|
local text, image_url = steam:send_steam_data(data, msg)
|
||||||
utilities.send_typing(msg.chat.id, 'upload_photo')
|
utilities.send_typing(msg.chat.id, 'upload_photo')
|
||||||
utilities.send_photo(msg.chat.id, image_url, nil, msg.message_id)
|
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
|
end
|
||||||
|
|
||||||
return steam
|
return steam
|
Reference in New Issue
Block a user