Twitter: Fix, entferne unescape() und sende keine Bilder, wenn Video eingebunden ist

This commit is contained in:
Andreas Bielawski 2016-08-04 13:18:05 +02:00
parent bd877e5642
commit 048f452630

View File

@ -130,8 +130,8 @@ function twitter:action(msg, config, matches)
end
-- send the parts
local text = unescape(text)
utilities.send_reply(self, msg, header .. "\n" .. text.."\n"..footer, 'HTML')
if videos[1] then images = {} end
for k, v in pairs(images) do
local file = download_to_file(v)
utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id)