public static class TdApi.TextEntity extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
length
Length of the entity, in UTF-16 code units.
|
int |
offset
Offset of the entity, in UTF-16 code units.
|
TdApi.TextEntityType |
type
Type of the entity.
|
| Constructor and Description |
|---|
TextEntity()
Represents a part of the text that needs to be formatted in some unusual way.
|
TextEntity(int offset,
int length,
TdApi.TextEntityType type)
Represents a part of the text that needs to be formatted in some unusual way.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int offset
public int length
public TdApi.TextEntityType type
public static final int CONSTRUCTOR
public TextEntity()
public TextEntity(int offset,
int length,
TdApi.TextEntityType type)
offset - Offset of the entity, in UTF-16 code units.length - Length of the entity, in UTF-16 code units.type - Type of the entity.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object