Upstream + alle Plugins angepasst
This commit is contained in:
@ -14,10 +14,10 @@ gifeye.command = 'ge <ID>'
|
||||
|
||||
function gifeye:action(msg, config, matches)
|
||||
local url = 'http://i.gifeye.com/'..matches[1]..'.gif'
|
||||
utilities.send_typing(self, msg.chat.id, 'upload_document')
|
||||
utilities.send_typing(msg.chat.id, 'upload_document')
|
||||
local file = download_to_file(url)
|
||||
if not file then
|
||||
utilities.send_reply(self, msg, config.errors.results)
|
||||
utilities.send_reply(msg, config.errors.results)
|
||||
return
|
||||
end
|
||||
|
||||
@ -26,7 +26,7 @@ function gifeye:action(msg, config, matches)
|
||||
else
|
||||
source = nil
|
||||
end
|
||||
utilities.send_document(self, msg.chat.id, file, source, msg.message_id)
|
||||
utilities.send_document(msg.chat.id, file, source, msg.message_id)
|
||||
end
|
||||
|
||||
return gifeye
|
Reference in New Issue
Block a user