diff --git a/src/nonebot_plugin_alconna/uniseg/adapters/feishu.py b/src/nonebot_plugin_alconna/uniseg/adapters/feishu.py index 710cd15..186f89e 100644 --- a/src/nonebot_plugin_alconna/uniseg/adapters/feishu.py +++ b/src/nonebot_plugin_alconna/uniseg/adapters/feishu.py @@ -49,7 +49,7 @@ async def image(self, seg: Image, bot: Bot) -> "MessageSegment": else: raise SerializeFailed(lang.require("nbp-uniseg", "invalid_segment").format(type="image", seg=seg)) data = {"image_type": "message"} - files = {"image": ("file", image)} + files = {"image": ("file", image.raw_bytes)} params = {"method": "POST", "data": data, "files": files} result = await bot.call_api("im/v1/images", **params) file_key = result["image_key"]