9gag deletes img after sended
This commit is contained in:
parent
848c9d6781
commit
5bf2b6bf17
@ -25,7 +25,7 @@ local function run(msg, matches)
|
||||
local receiver = get_receiver(msg)
|
||||
local url, title = get_9GAG()
|
||||
local file_path = download_to_file(url)
|
||||
_send_photo(receiver, file_path, send_title, {receiver, title})
|
||||
send_photo_from_url(receiver, url, send_title, {receiver, title})
|
||||
return false
|
||||
end
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
do
|
||||
|
||||
function getGoogleImage(text)
|
||||
@ -37,6 +38,7 @@ function run(msg, matches)
|
||||
|
||||
print("Bilder-URL: ", url)
|
||||
send_photo_from_url(receiver, url)
|
||||
return "Source:"..url
|
||||
end
|
||||
|
||||
return {
|
||||
@ -45,5 +47,4 @@ return {
|
||||
patterns = {"^/img (.*)$"},
|
||||
run = run
|
||||
}
|
||||
|
||||
end
|
||||
|
@ -37,6 +37,7 @@ function run(msg, matches)
|
||||
|
||||
print("Bilder-URL: ", url)
|
||||
send_photo_from_url(receiver, url)
|
||||
return "Source: "..url
|
||||
end
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user