From 2065f9a12c5d8cd3fd277d7a9d3aa6518d7d163e Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sat, 13 Aug 2016 16:51:32 +0200 Subject: [PATCH] cache_file() funktioniert jetzt auch mit Stickern (WebP) --- otouto/utilities.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/otouto/utilities.lua b/otouto/utilities.lua index f805eb0..c371ac2 100644 --- a/otouto/utilities.lua +++ b/otouto/utilities.lua @@ -835,6 +835,8 @@ function cache_file(result, url, last_modified) elseif result.result.photo then local lv = #result.result.photo file_id = result.result.photo[lv].file_id + elseif result.result.sticker then + file_id = result.result.sticker.file_id end print('Caching File...') redis:hset(hash..':'..url, 'file_id', file_id)