gif als Datei senden

This commit is contained in:
Akamaru 2015-11-22 23:10:13 +01:00
parent 79828a477a
commit 76b931fb64

View File

@ -31,7 +31,11 @@ local function run(msg, matches)
receiver=receiver,
url=url
}
send_msg(receiver, id, send_photo_from_url_callback, cb_extra)
if string.ends(url, ".gif") then
send_document_from_url(receiver, url)
else
send_msg(receiver, id, send_photo_from_url_callback, cb_extra)
end
end
return {