(url: str,
              title: str,
              content: Optional[str] = None,
              image_url: Optional[str] = None)
return MessageSegment(type_='share',
                              data=_remove_optional({
                                  'url': url,
                                  'title': title,
                                  'content': content,
                                  'image': image_url,
                              }))
链接分享。
链接分享。
链接分享。
def share(url: str,
              title: str,
              content: Optional[str] = None,
              image_url: Optional[str] = None) -> 'MessageSegment':
        """链接分享。"""
        return MessageSegment(type_='share',
                              data=_remove_optional({
                                  'url': url,
                                  'title': title,
                                  'content': content,
                                  'image': image_url,
                              }))
def share ( url : str , title : str , content : Optional [ str ] = None , image_url : Optional [ str ] = None ) -> 'MessageSegment' : return MessageSegment ( type_ = 'share' , data = _remove_optional ( { 'url' : url , 'title' : title , 'content' : content , 'image' : image_url , } ) )