Compare commits

...

3 Commits

Author SHA1 Message Date
00f416c8bc Merge pull request '改为使用 proxy url' (#37) from bugfix/discord-image-download into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #37
2025-11-05 23:59:54 +08:00
9c7d0a4486 Merge branch 'master' into bugfix/discord-image-download 2025-11-05 23:59:43 +08:00
e3b9d6723f 改为使用 proxy url 2025-11-05 23:58:55 +08:00

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):