Skip to content

Commit c5d076a

Browse files
committed
fix(highway): upload resource error
1 parent 33813e2 commit c5d076a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lagrange/client/highway/highway.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async def upload_image(self, file: BinaryIO, gid=0, uid="") -> Image:
226226

227227
return Image(
228228
id=fileid,
229-
text="[图片]" if info.pic_type.name != "gif" else "[动画表情]",
229+
display_name="[图片]" if info.pic_type.name != "gif" else "[动画表情]",
230230
name=f"{fmd5.hex()}.{info.pic_type.name}",
231231
size=fl,
232232
width=w,
@@ -329,7 +329,6 @@ async def upload_voice(self, file: BinaryIO, gid=0, uid="") -> Audio:
329329
# print(f"https://grouptalk.c2c.qq.com/?ver=0&rkey={compat[18].hex()}&filetype=4%voice_codec=0")
330330

331331
return Audio(
332-
text="[语音]",
333332
time=info.seconds,
334333
name=f"{fmd5.hex()}.amr",
335334
id=file_id,

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lagrange-python"
3-
version = "0.1.4"
3+
version = "0.1.4-1"
44
description = "An Python Implementation of NTQQ PC Protocol"
55
authors = [
66
{name="linwenxuan05"},

0 commit comments

Comments
 (0)