media.lua sends now webp
This commit is contained in:
parent
2c489f64f1
commit
f35e2fca84
@ -25,7 +25,7 @@ local types = {
|
|||||||
["image/x-jng"] = "jng",
|
["image/x-jng"] = "jng",
|
||||||
["image/x-ms-bmp"] = "bmp",
|
["image/x-ms-bmp"] = "bmp",
|
||||||
["image/svg+xml"] = "svg",
|
["image/svg+xml"] = "svg",
|
||||||
["image/webp"] = "webp",
|
["application/webp"] = "webp",
|
||||||
["application/java-archive"] = "jar",
|
["application/java-archive"] = "jar",
|
||||||
["application/mac-binhex40"] = "hqx",
|
["application/mac-binhex40"] = "hqx",
|
||||||
["application/msword"] = "doc",
|
["application/msword"] = "doc",
|
||||||
|
@ -18,6 +18,10 @@ local function run(msg, matches)
|
|||||||
print('Sende Document')
|
print('Sende Document')
|
||||||
send_document(receiver, file, rmtmp_cb, cb_extra)
|
send_document(receiver, file, rmtmp_cb, cb_extra)
|
||||||
|
|
||||||
|
elseif mime_type == 'application' then
|
||||||
|
print('Sende Document')
|
||||||
|
send_document(receiver, file, rmtmp_cb, cb_extra)
|
||||||
|
|
||||||
elseif mime_type == 'image' then
|
elseif mime_type == 'image' then
|
||||||
print('Sende Foto')
|
print('Sende Foto')
|
||||||
send_photo(receiver, file, rmtmp_cb, cb_extra)
|
send_photo(receiver, file, rmtmp_cb, cb_extra)
|
||||||
|
Reference in New Issue
Block a user