This commit is contained in:
Akamaru 2017-01-21 19:25:19 +01:00
parent 5fd3fb6aba
commit b915f1803a
4 changed files with 5 additions and 5 deletions

View File

@ -317,7 +317,7 @@ function bot:print_msg(msg)
elseif msg.audio then
filetext = '[Audio] '
elseif msg.document then
filetext = '[Datei] '
filetext = '[Datei] ('..msg.document.file_name..') '
elseif msg.location then
filetext = '[Standort] '
elseif msg.contact then

View File

@ -12,8 +12,8 @@ function figuya:get_figuya(figu)
local data = json.decode(b)
local title = data.title
if string.len(data.description) > 400 then
desc = string.sub(unescape(data.description:gsub("%b<>", "")), 1, 400)..'..'
if string.len(data.description) > 500 then
desc = string.sub(unescape(data.description:gsub("%b<>", "")), 1, 500)..'..'
else
desc = unescape(data.description)..'.'
end

View File

@ -34,8 +34,7 @@ function moe:action(msg, config, matches)
utilities.send_reply(msg, config.errors.connection)
return
end
local file = download_to_file(photo_url)
utilities.send_photo(msg.chat.id, file, nil, msg.message_id)
utilities.send_photo(msg.chat.id, photo_url, nil, msg.message_id)
end
return moe

View File

@ -68,6 +68,7 @@ function plex:get_plex(query)
if data.grandparentTitle then
from = ' (aus <i>'..data.grandparentTitle..'</i> ['..string.gsub(season..episode, 'S0E', 'SP')..']'..') '
from = string.gsub(from, 'SP501', 'SP01')
else
from = ''
end