Show / Hide Table of Contents

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 Source

Length

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Type

Type of this message entity

Declaration
public MessageEntityType Type { get; set; }
Property Value
Type Description
MessageEntityType
| Improve this Doc View Source

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
| Improve this Doc View Source

User

The mentioned user of a TextMention

Declaration
[JsonProperty(PropertyName = "user")]
public User User { get; set; }
Property Value
Type Description
User
| Improve this Doc View Source

Value

The text value of this entity

Declaration
[JsonIgnore]
public string Value { get; set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX