media.lua sends now webp

This commit is contained in:
Akamaru 2015-05-21 19:04:12 +02:00
parent 2c489f64f1
commit f35e2fca84
2 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,7 @@ local types = {
["image/x-jng"] = "jng",
["image/x-ms-bmp"] = "bmp",
["image/svg+xml"] = "svg",
["image/webp"] = "webp",
["application/webp"] = "webp",
["application/java-archive"] = "jar",
["application/mac-binhex40"] = "hqx",
["application/msword"] = "doc",

View File

@ -17,6 +17,10 @@ local function run(msg, matches)
elseif mime_type == 'text' then
print('Sende Document')
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
print('Sende Foto')