Class BaseElementShare
分享链接
Inherited Members
Namespace: cqhttp.Cyan.Messages.CQElements.Base
Assembly: cqhttp.Cyan.dll
Syntax
public class BaseElementShare : Element
Constructors
| Improve this Doc View SourceBaseElementShare(String, String, String, String, (String k, String v)[])
Declaration
public BaseElementShare(string url, string title, string content = "", string image = "", params (string k, string v)[] p)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | |
System.String | title | |
System.String | content | |
System.String | image | |
System.ValueTuple<System.String, System.String>[] | p |
Properties
| Improve this Doc View Sourcecontent
Declaration
public string content { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | 分享的简介,建议30字以内。可为空。 |
image
Declaration
public string image { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | 分享的图片链接 |
title
Declaration
public string title { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | 分享的标题,建议12字以内。 |
url
Declaration
public string url { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | 分享链接 |