diff --git a/miku/plugins/expand.lua b/miku/plugins/expand.lua index da711ef..c928d6b 100644 --- a/miku/plugins/expand.lua +++ b/miku/plugins/expand.lua @@ -2,7 +2,8 @@ local expand = {} function expand:init(config) expand.triggers = { - '^/[Ee][Xx][Pp][Aa][Nn][Dd] (https?://[%w-_%.%?%.:/%+=&]+)$' + '^/[Ee][Xx][Pp][Aa][Nn][Dd] (https?://[%w-_%.%?%.:/%+=&]+)$', + '(https?://t.co/.*)' } expand.inline_triggers = { '^ex (https?://[%w-_%.%?%.:/%+=&]+)$' diff --git a/miku/plugins/webshot.lua b/miku/plugins/webshot.lua index 7d8b7db..11e914f 100644 --- a/miku/plugins/webshot.lua +++ b/miku/plugins/webshot.lua @@ -61,7 +61,7 @@ function webshot:action(msg, config, matches) local find = webshot:get_webshot_url(webshot_url, size) if find then local imgurl = base .. find - local file = download_to_file(imgurl) + local file = download_to_file(imgurl, 'webshot.png') if size == "F" then utilities.send_document(msg.chat.id, file, nil, msg.message_id) return