diff --git a/otouto/plugins/images.lua b/otouto/plugins/images.lua index 70a83b8..a8ac784 100644 --- a/otouto/plugins/images.lua +++ b/otouto/plugins/images.lua @@ -5,7 +5,7 @@ images.triggers = { "(https?://[%w-_%%%.%?%.:,/%+=~&%[%]]+%.[Jj][Pp][Ee]?[Gg])$" } -function images:action(msg) +function images:action(msg, config, matches) local url = matches[1] local file, last_modified, nocache = get_cached_file(url, nil, msg.chat.id, 'upload_photo', self) local result = utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id) diff --git a/otouto/plugins/media.lua b/otouto/plugins/media.lua index 0351a55..5c41675 100644 --- a/otouto/plugins/media.lua +++ b/otouto/plugins/media.lua @@ -22,7 +22,7 @@ media.triggers = { "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(webp))$" } -function media:action(msg) +function media:action(msg, config, matches) local url = matches[1] local ext = matches[2] local mime_type = mimetype.get_content_type_no_sub(ext)