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"},