Skip to content

Commit

Permalink
fix(highway): upload resource error
Browse files Browse the repository at this point in the history
  • Loading branch information
wyapx committed Oct 13, 2024
1 parent 33813e2 commit c5d076a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lagrange/client/highway/highway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"},
Expand Down

0 comments on commit c5d076a

Please sign in to comment.