Skip to content

Commit

Permalink
🐛 修复合并转发在bytes传输下图片丢失
Browse files Browse the repository at this point in the history
  • Loading branch information
HibiKier committed Oct 23, 2024
1 parent 6519b1c commit c9b864c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zhenxun/utils/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def template2forward(cls, msg_list: list[UniMessage], uni: str) -> list[dict]:
if isinstance(r, Text):
s += str(r)
elif isinstance(r, Image):
if v := r.url or r.path:
if v := r.url or r.path or r.raw:
s += MessageSegment.image(v)
elif isinstance(r_list, Image):
if v := r_list.url or r_list.path:
Expand Down

0 comments on commit c9b864c

Please sign in to comment.