From c5d076aa7658a2f137f72d6ea19d6b03c2fab6fc Mon Sep 17 00:00:00 2001 From: nullcat Date: Mon, 14 Oct 2024 00:52:38 +0800 Subject: [PATCH] fix(highway): upload resource error --- lagrange/client/highway/highway.py | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lagrange/client/highway/highway.py b/lagrange/client/highway/highway.py index 9c4d28d..1867af4 100644 --- a/lagrange/client/highway/highway.py +++ b/lagrange/client/highway/highway.py @@ -226,7 +226,7 @@ async def upload_image(self, file: BinaryIO, gid=0, uid="") -> Image: return Image( id=fileid, - text="[图片]" if info.pic_type.name != "gif" else "[动画表情]", + display_name="[图片]" if info.pic_type.name != "gif" else "[动画表情]", name=f"{fmd5.hex()}.{info.pic_type.name}", size=fl, width=w, @@ -329,7 +329,6 @@ async def upload_voice(self, file: BinaryIO, gid=0, uid="") -> Audio: # print(f"https://grouptalk.c2c.qq.com/?ver=0&rkey={compat[18].hex()}&filetype=4%voice_codec=0") return Audio( - text="[语音]", time=info.seconds, name=f"{fmd5.hex()}.amr", id=file_id, diff --git a/pyproject.toml b/pyproject.toml index 0d4f947..8593182 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lagrange-python" -version = "0.1.4" +version = "0.1.4-1" description = "An Python Implementation of NTQQ PC Protocol" authors = [ {name="linwenxuan05"},