cache_file() funktioniert jetzt auch mit Stickern (WebP)

This commit is contained in:
Andreas Bielawski 2016-08-13 16:51:32 +02:00
parent af7cddbbf7
commit 2065f9a12c

View File

@ -835,6 +835,8 @@ function cache_file(result, url, last_modified)
elseif result.result.photo then elseif result.result.photo then
local lv = #result.result.photo local lv = #result.result.photo
file_id = result.result.photo[lv].file_id file_id = result.result.photo[lv].file_id
elseif result.result.sticker then
file_id = result.result.sticker.file_id
end end
print('Caching File...') print('Caching File...')
redis:hset(hash..':'..url, 'file_id', file_id) redis:hset(hash..':'..url, 'file_id', file_id)