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 receiver = get_receiver(msg)
|
||||||
local url, title = get_9GAG()
|
local url, title = get_9GAG()
|
||||||
local file_path = download_to_file(url)
|
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
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
do
|
do
|
||||||
|
|
||||||
function getGoogleImage(text)
|
function getGoogleImage(text)
|
||||||
@ -37,6 +38,7 @@ function run(msg, matches)
|
|||||||
|
|
||||||
print("Bilder-URL: ", url)
|
print("Bilder-URL: ", url)
|
||||||
send_photo_from_url(receiver, url)
|
send_photo_from_url(receiver, url)
|
||||||
|
return "Source:"..url
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -45,5 +47,4 @@ return {
|
|||||||
patterns = {"^/img (.*)$"},
|
patterns = {"^/img (.*)$"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -37,6 +37,7 @@ function run(msg, matches)
|
|||||||
|
|
||||||
print("Bilder-URL: ", url)
|
print("Bilder-URL: ", url)
|
||||||
send_photo_from_url(receiver, url)
|
send_photo_from_url(receiver, url)
|
||||||
|
return "Source: "..url
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user