public static class TdApi.MessageText extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.LinkPreview |
linkPreview
A link preview attached to the message; may be null.
|
TdApi.LinkPreviewOptions |
linkPreviewOptions
Options which were used for generation of the link preview; may be null if default options were used.
|
TdApi.FormattedText |
text
Text of the message.
|
| Constructor and Description |
|---|
MessageText()
A text message.
|
MessageText(TdApi.FormattedText text,
TdApi.LinkPreview linkPreview,
TdApi.LinkPreviewOptions linkPreviewOptions)
A text message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.FormattedText text
public TdApi.LinkPreview linkPreview
public TdApi.LinkPreviewOptions linkPreviewOptions
public static final int CONSTRUCTOR
public MessageText()
public MessageText(TdApi.FormattedText text, TdApi.LinkPreview linkPreview, TdApi.LinkPreviewOptions linkPreviewOptions)
text - Text of the message.linkPreview - A link preview attached to the message; may be null.linkPreviewOptions - Options which were used for generation of the link preview; may be null if default options were used.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object