Commit 21384c9
Changed files (1)
src
preview
src/preview/wechat.py
@@ -53,12 +53,13 @@ async def preview_wechat(
logger.info(f"WeChat link preview for {url}")
post_info = await get_wechat_info(url)
+ sender = kwargs.pop("send_from_user", "")
if error := post_info.get("error"):
await modify_progress(text=f"❌微信链接解析失败{url}\n{error}", force_update=True, **kwargs)
return
# send texts first
- text_messages = await send_blockquote_texts(client, message, texts=post_info["caption"], **kwargs)
+ text_messages = await send_blockquote_texts(client, message, texts=sender + post_info["caption"], **kwargs)
text_messages = [x for x in text_messages if isinstance(x, Message)]
media_messages = []
if media := post_info.get("media"):