From 3cddc0a122b6daf605729b21e4a27c717d71fdf9 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Wed, 17 Aug 2016 21:40:13 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20f=C3=BCr=20Plex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miku/plugins/plex.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/miku/plugins/plex.lua b/miku/plugins/plex.lua index e967011..03bde3c 100644 --- a/miku/plugins/plex.lua +++ b/miku/plugins/plex.lua @@ -141,14 +141,13 @@ function plex:action(msg, config) utilities.send_reply(self, msg, config.errors.connection) return end - local receiver = msg.chat.id if pic then utilities.send_typing(self, receiver, 'upload_photo') - local file = download_to_file(pic) - utilities.send_photo(self, receiver, file) + local file = download_to_file(pic, 'plex.png') + utilities.send_photo(self, msg.chat.id, file) end - utilities.send_reply(self, receiver, text) + utilities.send_reply(self, msg, text) end -return plex \ No newline at end of file +return plex