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",
|
||||||
|
@ -17,6 +17,10 @@ local function run(msg, matches)
|
|||||||
elseif mime_type == 'text' then
|
elseif mime_type == 'text' then
|
||||||
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')
|
||||||
|
Reference in New Issue
Block a user