改为使用 proxy url

This commit is contained in:
2025-11-05 23:58:55 +08:00
parent bfbfa9d9be
commit e3b9d6723f

View File

@ -127,7 +127,7 @@ async def extract_image_from_message(
for a in evt.attachments:
if "image/" not in a.content_type:
continue
url = a.url
url = a.proxy_url
return (await download_image_bytes(url)).bind(bytes_to_pil)
for seg in UniMessage.of(msg, bot):