Fix für Plex
This commit is contained in:
parent
4769ca5a27
commit
3cddc0a122
@ -141,14 +141,13 @@ function plex:action(msg, config)
|
|||||||
utilities.send_reply(self, msg, config.errors.connection)
|
utilities.send_reply(self, msg, config.errors.connection)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local receiver = msg.chat.id
|
|
||||||
|
|
||||||
if pic then
|
if pic then
|
||||||
utilities.send_typing(self, receiver, 'upload_photo')
|
utilities.send_typing(self, receiver, 'upload_photo')
|
||||||
local file = download_to_file(pic)
|
local file = download_to_file(pic, 'plex.png')
|
||||||
utilities.send_photo(self, receiver, file)
|
utilities.send_photo(self, msg.chat.id, file)
|
||||||
end
|
end
|
||||||
utilities.send_reply(self, receiver, text)
|
utilities.send_reply(self, msg, text)
|
||||||
end
|
end
|
||||||
|
|
||||||
return plex
|
return plex
|
Reference in New Issue
Block a user