🎨 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:
Wang Yu 2023-07-04 09:44:45 +08:00 committed by GitHub
parent f5b550486a
commit eaf6fc8ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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