public static class TdApi.MessageText extends TdApi.MessageContent
TdApi.MessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.FormattedText |
text
Text of the message.
|
TdApi.WebPage |
webPage
A preview of the web page that's mentioned in the text; may be null.
|
Constructor and Description |
---|
MessageText()
A text message.
|
MessageText(TdApi.FormattedText text,
TdApi.WebPage webPage)
A text message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.FormattedText text
@Nullable public TdApi.WebPage webPage
public static final int CONSTRUCTOR
public MessageText()
public MessageText(TdApi.FormattedText text, TdApi.WebPage webPage)
text
- Text of the message.webPage
- A preview of the web page that's mentioned in the text; may be null.public int getConstructor()
getConstructor
in class TdApi.MessageContent