Fix für Plex

This commit is contained in:
Akamaru 2016-08-17 21:40:13 +02:00
parent 4769ca5a27
commit 3cddc0a122

View File

@ -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
return plex