mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-12 06:55:58 +08:00
🎨 nb端暂时增加wx.link的支持 (#547)
* nb端增加image和file的url支持 * nb端暂时增加wx.link的支持 * nb端暂时增加wx.link的支持 * nb端暂时增加wx.link的支持 --------- Co-authored-by: Small_yu <wangyu1997@users.noreply.github.com>
This commit is contained in:
parent
f5b550486a
commit
eaf6fc8ca3
@ -451,6 +451,9 @@ def convert_message(_msg: Any, message: List[Message], index: int):
|
||||
elif _msg.type == 'mention':
|
||||
if 'user_id' in _msg.data:
|
||||
message.append(Message('at', _msg.data['user_id']))
|
||||
elif _msg.type == 'wx.link':
|
||||
data: str = f"title: {_msg.data['title']} url: {_msg.data['url']}"
|
||||
message.append(Message('text', data))
|
||||
return message
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user