Twitter: Fix, entferne unescape() und sende keine Bilder, wenn Video eingebunden ist
This commit is contained in:
parent
bd877e5642
commit
048f452630
@ -130,8 +130,8 @@ function twitter:action(msg, config, matches)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- send the parts
|
-- send the parts
|
||||||
local text = unescape(text)
|
|
||||||
utilities.send_reply(self, msg, header .. "\n" .. text.."\n"..footer, 'HTML')
|
utilities.send_reply(self, msg, header .. "\n" .. text.."\n"..footer, 'HTML')
|
||||||
|
if videos[1] then images = {} end
|
||||||
for k, v in pairs(images) do
|
for k, v in pairs(images) do
|
||||||
local file = download_to_file(v)
|
local file = download_to_file(v)
|
||||||
utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id)
|
utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id)
|
||||||
|
Reference in New Issue
Block a user