Upstream + alle Plugins angepasst
This commit is contained in:
@ -13,14 +13,14 @@ z0r.command = 'z0r <ID>'
|
||||
|
||||
function z0r:action(msg, config, matches)
|
||||
local id = matches[1]
|
||||
utilities.send_typing(self, msg.chat.id, 'upload_video')
|
||||
utilities.send_typing(msg.chat.id, 'upload_video')
|
||||
local url = 'http://z0r.de/L/z0r-de_'..matches[1]..'.swf'
|
||||
local file = download_to_file(url)
|
||||
if not file then
|
||||
utilities.send_reply(self, msg, config.errors.connection)
|
||||
utilities.send_reply(msg, config.errors.connection)
|
||||
return
|
||||
end
|
||||
utilities.send_document(self, msg.chat.id, file, nil, msg.message_id)
|
||||
utilities.send_document(msg.chat.id, file, nil, msg.message_id)
|
||||
end
|
||||
|
||||
return z0r
|
Reference in New Issue
Block a user