Record Class InputTextMessageContent
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputTextMessageContent
- All Implemented Interfaces:
Serializable,ApiResult,InputMessageContent
public record InputTextMessageContent(String messageText, @Nullable ParseMode parseMode, @Nullable MessageEntity[] entities, @Nullable LinkPreviewOptions linkPreviewOptions)
extends Record
implements InputMessageContent
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputTextMessageContent(String messageText, @Nullable ParseMode parseMode, @Nullable MessageEntity[] entities, @Nullable LinkPreviewOptions linkPreviewOptions) Creates an instance of aInputTextMessageContentrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable MessageEntity[]entities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable LinkPreviewOptionsReturns the value of thelinkPreviewOptionsrecord component.Returns the value of themessageTextrecord component.@Nullable ParseModeReturns the value of theparseModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputTextMessageContent
public InputTextMessageContent(String messageText, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] entities, @Nullable @Nullable LinkPreviewOptions linkPreviewOptions) Creates an instance of aInputTextMessageContentrecord class.- Parameters:
messageText- the value for themessageTextrecord componentparseMode- the value for theparseModerecord componententities- the value for theentitiesrecord componentlinkPreviewOptions- the value for thelinkPreviewOptionsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
messageText
Returns the value of themessageTextrecord component.- Returns:
- the value of the
messageTextrecord component
-
parseMode
Returns the value of theparseModerecord component.- Returns:
- the value of the
parseModerecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-
linkPreviewOptions
Returns the value of thelinkPreviewOptionsrecord component.- Returns:
- the value of the
linkPreviewOptionsrecord component
-