Class TdApi.MessageText
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageContent
dev.voroby.springframework.telegram.client.TdApi.MessageText
- Enclosing class:
- TdApi
A text message.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.A link preview attached to the message; may be null.Options which were used for generation of the link preview; may be null if default options were used.Text of the message. -
Constructor Summary
ConstructorDescriptionA text message.MessageText
(TdApi.FormattedText text, TdApi.LinkPreview linkPreview, TdApi.LinkPreviewOptions linkPreviewOptions) A text message. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageText
public MessageText()A text message. -
MessageText
public MessageText(TdApi.FormattedText text, TdApi.LinkPreview linkPreview, TdApi.LinkPreviewOptions linkPreviewOptions) A text message.- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-