Class MessageEntity
Represents a special entity in a text message
Inheritance
System.Object
MessageEntity
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class MessageEntity
Properties
| Improve this Doc View SourceLength
Length of the entity in UTF-16 units
Declaration
[JsonProperty(PropertyName = "length", Required = Required.Always)]
public int Length { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Offset
Offset of the entity in UTF-16 units
Declaration
[JsonProperty(PropertyName = "offset", Required = Required.Always)]
public int Offset { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
Type of this message entity
Declaration
public MessageEntityType Type { get; set; }
Property Value
Type | Description |
---|---|
MessageEntityType |
Url
Url that will be opened when clicking on the TextLink
Declaration
[JsonProperty(PropertyName = "url")]
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
User
The mentioned user of a TextMention
Declaration
[JsonProperty(PropertyName = "user")]
public User User { get; set; }
Property Value
Type | Description |
---|---|
User |
Value
The text value of this entity
Declaration
[JsonIgnore]
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |