This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
2015-07-27 15:50:19 +02:00
|
|
|
function run(msg, matches)
|
|
|
|
local receiver = get_receiver(msg)
|
|
|
|
local url = matches[1]
|
|
|
|
local file = download_to_file(url)
|
|
|
|
local cb_extra = {file_path=file}
|
|
|
|
chat_set_photo(receiver, file, ok_cb, false)
|
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
|
|
|
description = "",
|
|
|
|
usage = {""},
|
|
|
|
patterns = {"^/pic (.*)$"},
|
2015-11-12 17:42:03 +01:00
|
|
|
run = run,
|
|
|
|
notyping = true
|
2015-08-02 22:06:13 +02:00
|
|
|
}
|
|
|
|
--by Akamaru [https://ponywave.de]
|