Compare commits
3 Commits
v0.9.16
...
00f416c8bc
| Author | SHA1 | Date | |
|---|---|---|---|
| 00f416c8bc | |||
| 9c7d0a4486 | |||
| e3b9d6723f |
@ -127,7 +127,7 @@ async def extract_image_from_message(
|
|||||||
for a in evt.attachments:
|
for a in evt.attachments:
|
||||||
if "image/" not in a.content_type:
|
if "image/" not in a.content_type:
|
||||||
continue
|
continue
|
||||||
url = a.url
|
url = a.proxy_url
|
||||||
return (await download_image_bytes(url)).bind(bytes_to_pil)
|
return (await download_image_bytes(url)).bind(bytes_to_pil)
|
||||||
|
|
||||||
for seg in UniMessage.of(msg, bot):
|
for seg in UniMessage.of(msg, bot):
|
||||||
|
|||||||
Reference in New Issue
Block a user