Record Class Message

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.Message
All Implemented Interfaces:
Serializable, ApiResult, MaybeInaccessibleMessage

public record Message(int messageId, int messageThreadId, @Nullable DirectMessagesTopic directMessagesTopic, @Nullable User from, @Nullable Chat senderChat, int senderBoostCount, @Nullable User senderBusinessBot, @NotNull Date date, @Nullable String businessConnectionId, @NotNull Chat chat, @Nullable MessageOrigin forwardOrigin, boolean isTopicMessage, boolean isAutomaticForward, @Nullable Message replyToMessage, @Nullable ExternalReplyInfo externalReply, @Nullable TextQuote quote, @Nullable Story replyToStory, int replyToChecklistTaskId, @Nullable User viaBot, @Nullable Date editDate, boolean hasProtectedContent, boolean isFromOffline, boolean isPaidPost, @Nullable String mediaGroupId, @Nullable String authorSignature, int paidStarCount, @Nullable String text, @Nullable MessageEntity[] entities, @Nullable LinkPreviewOptions linkPreviewOptions, @Nullable String effectId, @Nullable Animation animation, @Nullable Audio audio, @Nullable Document document, @Nullable PaidMedia paidMedia, @Nullable PhotoSize[] photo, @Nullable Sticker sticker, @Nullable Story story, @Nullable Video video, @Nullable VideoNote videoNote, @Nullable Voice voice, @Nullable String caption, @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, boolean hasMediaSpoiler, @Nullable Checklist checklist, @Nullable Contact contact, @Nullable Dice dice, @Nullable Game game, @Nullable Poll poll, @Nullable Venue venue, @Nullable Location location, @Nullable User[] newChatMembers, @Nullable User leftChatMember, @Nullable ChatOwnerLeft chatOwnerLeft, @Nullable ChatOwnerChanged chatOwnerChanged, @Nullable String newChatTitle, @Nullable PhotoSize[] newChatPhoto, boolean deleteChatPhoto, boolean groupChatCreated, boolean supergroupChatCreated, boolean channelChatCreated, @Nullable MessageAutoDeleteTimerChanged messageAutoDeleteTimerChanged, @Nullable Long migrateToChatId, @Nullable Long migrateFromChatId, @Nullable MaybeInaccessibleMessage pinnedMessage, @Nullable Invoice invoice, @Nullable SuccessfulPayment successfulPayment, @Nullable RefundedPayment refundedPayment, @Nullable UsersShared userShared, @Nullable ChatShared chatShared, @Nullable GiftInfo gift, @Nullable UniqueGiftInfo uniqueGift, @Nullable GiftInfo giftUpgradeSent, @Nullable String connectedWebsite, @Nullable WriteAccessAllowed writeAccessAllowed, @Nullable PassportData passportData, @Nullable ProximityAlertTriggered proximityAlertTriggered, @Nullable ChatBoostAdded boostAdded, @Nullable ChatBackground chatBackgroundSet, @Nullable ChecklistTasksDone checklistTasksDone, @Nullable ChecklistTasksAdded checklistTasksAdded, @Nullable DirectMessagePriceChanged directMessagePriceChanged, @Nullable ForumTopicCreated forumTopicCreated, @Nullable ForumTopicEdited forumTopicEdited, @Nullable ForumTopicClosed forumTopicClosed, @Nullable ForumTopicReopened forumTopicReopened, @Nullable GeneralForumTopicHidden generalForumTopicHidden, @Nullable GeneralForumTopicUnhidden generalForumTopicUnhidden, @Nullable GiveawayCreated giveawayCreated, @Nullable Giveaway giveaway, @Nullable GiveawayWinners giveawayWinners, @Nullable GiveawayCompleted giveawayCompleted, @Nullable PaidMessagePriceChanged paidMessagePriceChanged, @Nullable SuggestedPostApproved suggestedPostApproved, @Nullable SuggestedPostApprovalFailed suggestedPostApprovalFailed, @Nullable SuggestedPostDeclined suggestedPostDeclined, @Nullable SuggestedPostPaid suggestedPostPaid, @Nullable SuggestedPostRefunded suggestedPostRefunded, @Nullable VideoChatScheduled videoChatScheduled, @Nullable VideoChatStarted videoChatStarted, @Nullable VideoChatEnded videoChatEnded, @Nullable VideoChatParticipantsInvited videoChatParticipantsInvited, @Nullable WebAppData webAppData, @Nullable ReplyKeyboard replyMarkup) extends Record implements MaybeInaccessibleMessage
See Also:
  • Constructor Details

    • Message

      public Message(int messageId, int messageThreadId, @Nullable @Nullable DirectMessagesTopic directMessagesTopic, @Nullable @Nullable User from, @Nullable @Nullable Chat senderChat, int senderBoostCount, @Nullable @Nullable User senderBusinessBot, @NotNull @NotNull Date date, @Nullable @Nullable String businessConnectionId, @NotNull @NotNull Chat chat, @Nullable @Nullable MessageOrigin forwardOrigin, boolean isTopicMessage, boolean isAutomaticForward, @Nullable @Nullable Message replyToMessage, @Nullable @Nullable ExternalReplyInfo externalReply, @Nullable @Nullable TextQuote quote, @Nullable @Nullable Story replyToStory, int replyToChecklistTaskId, @Nullable @Nullable User viaBot, @Nullable @Nullable Date editDate, boolean hasProtectedContent, boolean isFromOffline, boolean isPaidPost, @Nullable @Nullable String mediaGroupId, @Nullable @Nullable String authorSignature, int paidStarCount, @Nullable @Nullable String text, @Nullable @Nullable MessageEntity[] entities, @Nullable @Nullable LinkPreviewOptions linkPreviewOptions, @Nullable @Nullable String effectId, @Nullable @Nullable Animation animation, @Nullable @Nullable Audio audio, @Nullable @Nullable Document document, @Nullable @Nullable PaidMedia paidMedia, @Nullable @Nullable PhotoSize[] photo, @Nullable @Nullable Sticker sticker, @Nullable @Nullable Story story, @Nullable @Nullable Video video, @Nullable @Nullable VideoNote videoNote, @Nullable @Nullable Voice voice, @Nullable @Nullable String caption, @Nullable @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, boolean hasMediaSpoiler, @Nullable @Nullable Checklist checklist, @Nullable @Nullable Contact contact, @Nullable @Nullable Dice dice, @Nullable @Nullable Game game, @Nullable @Nullable Poll poll, @Nullable @Nullable Venue venue, @Nullable @Nullable Location location, @Nullable @Nullable User[] newChatMembers, @Nullable @Nullable User leftChatMember, @Nullable @Nullable ChatOwnerLeft chatOwnerLeft, @Nullable @Nullable ChatOwnerChanged chatOwnerChanged, @Nullable @Nullable String newChatTitle, @Nullable @Nullable PhotoSize[] newChatPhoto, boolean deleteChatPhoto, boolean groupChatCreated, boolean supergroupChatCreated, boolean channelChatCreated, @Nullable @Nullable MessageAutoDeleteTimerChanged messageAutoDeleteTimerChanged, @Nullable @Nullable Long migrateToChatId, @Nullable @Nullable Long migrateFromChatId, @Nullable @Nullable MaybeInaccessibleMessage pinnedMessage, @Nullable @Nullable Invoice invoice, @Nullable @Nullable SuccessfulPayment successfulPayment, @Nullable @Nullable RefundedPayment refundedPayment, @Nullable @Nullable UsersShared userShared, @Nullable @Nullable ChatShared chatShared, @Nullable @Nullable GiftInfo gift, @Nullable @Nullable UniqueGiftInfo uniqueGift, @Nullable @Nullable GiftInfo giftUpgradeSent, @Nullable @Nullable String connectedWebsite, @Nullable @Nullable WriteAccessAllowed writeAccessAllowed, @Nullable @Nullable PassportData passportData, @Nullable @Nullable ProximityAlertTriggered proximityAlertTriggered, @Nullable @Nullable ChatBoostAdded boostAdded, @Nullable @Nullable ChatBackground chatBackgroundSet, @Nullable @Nullable ChecklistTasksDone checklistTasksDone, @Nullable @Nullable ChecklistTasksAdded checklistTasksAdded, @Nullable @Nullable DirectMessagePriceChanged directMessagePriceChanged, @Nullable @Nullable ForumTopicCreated forumTopicCreated, @Nullable @Nullable ForumTopicEdited forumTopicEdited, @Nullable @Nullable ForumTopicClosed forumTopicClosed, @Nullable @Nullable ForumTopicReopened forumTopicReopened, @Nullable @Nullable GeneralForumTopicHidden generalForumTopicHidden, @Nullable @Nullable GeneralForumTopicUnhidden generalForumTopicUnhidden, @Nullable @Nullable GiveawayCreated giveawayCreated, @Nullable @Nullable Giveaway giveaway, @Nullable @Nullable GiveawayWinners giveawayWinners, @Nullable @Nullable GiveawayCompleted giveawayCompleted, @Nullable @Nullable PaidMessagePriceChanged paidMessagePriceChanged, @Nullable @Nullable SuggestedPostApproved suggestedPostApproved, @Nullable @Nullable SuggestedPostApprovalFailed suggestedPostApprovalFailed, @Nullable @Nullable SuggestedPostDeclined suggestedPostDeclined, @Nullable @Nullable SuggestedPostPaid suggestedPostPaid, @Nullable @Nullable SuggestedPostRefunded suggestedPostRefunded, @Nullable @Nullable VideoChatScheduled videoChatScheduled, @Nullable @Nullable VideoChatStarted videoChatStarted, @Nullable @Nullable VideoChatEnded videoChatEnded, @Nullable @Nullable VideoChatParticipantsInvited videoChatParticipantsInvited, @Nullable @Nullable WebAppData webAppData, @Nullable @Nullable ReplyKeyboard replyMarkup)
      Creates an instance of a Message record class.
      Parameters:
      messageId - the value for the messageId record component
      messageThreadId - the value for the messageThreadId record component
      directMessagesTopic - the value for the directMessagesTopic record component
      from - the value for the from record component
      senderChat - the value for the senderChat record component
      senderBoostCount - the value for the senderBoostCount record component
      senderBusinessBot - the value for the senderBusinessBot record component
      date - the value for the date record component
      businessConnectionId - the value for the businessConnectionId record component
      chat - the value for the chat record component
      forwardOrigin - the value for the forwardOrigin record component
      isTopicMessage - the value for the isTopicMessage record component
      isAutomaticForward - the value for the isAutomaticForward record component
      replyToMessage - the value for the replyToMessage record component
      externalReply - the value for the externalReply record component
      quote - the value for the quote record component
      replyToStory - the value for the replyToStory record component
      replyToChecklistTaskId - the value for the replyToChecklistTaskId record component
      viaBot - the value for the viaBot record component
      editDate - the value for the editDate record component
      hasProtectedContent - the value for the hasProtectedContent record component
      isFromOffline - the value for the isFromOffline record component
      isPaidPost - the value for the isPaidPost record component
      mediaGroupId - the value for the mediaGroupId record component
      authorSignature - the value for the authorSignature record component
      paidStarCount - the value for the paidStarCount record component
      text - the value for the text record component
      entities - the value for the entities record component
      linkPreviewOptions - the value for the linkPreviewOptions record component
      effectId - the value for the effectId record component
      animation - the value for the animation record component
      audio - the value for the audio record component
      document - the value for the document record component
      paidMedia - the value for the paidMedia record component
      photo - the value for the photo record component
      sticker - the value for the sticker record component
      story - the value for the story record component
      video - the value for the video record component
      videoNote - the value for the videoNote record component
      voice - the value for the voice record component
      caption - the value for the caption record component
      captionEntities - the value for the captionEntities record component
      showCaptionAboveMedia - the value for the showCaptionAboveMedia record component
      hasMediaSpoiler - the value for the hasMediaSpoiler record component
      checklist - the value for the checklist record component
      contact - the value for the contact record component
      dice - the value for the dice record component
      game - the value for the game record component
      poll - the value for the poll record component
      venue - the value for the venue record component
      location - the value for the location record component
      newChatMembers - the value for the newChatMembers record component
      leftChatMember - the value for the leftChatMember record component
      chatOwnerLeft - the value for the chatOwnerLeft record component
      chatOwnerChanged - the value for the chatOwnerChanged record component
      newChatTitle - the value for the newChatTitle record component
      newChatPhoto - the value for the newChatPhoto record component
      deleteChatPhoto - the value for the deleteChatPhoto record component
      groupChatCreated - the value for the groupChatCreated record component
      supergroupChatCreated - the value for the supergroupChatCreated record component
      channelChatCreated - the value for the channelChatCreated record component
      messageAutoDeleteTimerChanged - the value for the messageAutoDeleteTimerChanged record component
      migrateToChatId - the value for the migrateToChatId record component
      migrateFromChatId - the value for the migrateFromChatId record component
      pinnedMessage - the value for the pinnedMessage record component
      invoice - the value for the invoice record component
      successfulPayment - the value for the successfulPayment record component
      refundedPayment - the value for the refundedPayment record component
      userShared - the value for the userShared record component
      chatShared - the value for the chatShared record component
      gift - the value for the gift record component
      uniqueGift - the value for the uniqueGift record component
      giftUpgradeSent - the value for the giftUpgradeSent record component
      connectedWebsite - the value for the connectedWebsite record component
      writeAccessAllowed - the value for the writeAccessAllowed record component
      passportData - the value for the passportData record component
      proximityAlertTriggered - the value for the proximityAlertTriggered record component
      boostAdded - the value for the boostAdded record component
      chatBackgroundSet - the value for the chatBackgroundSet record component
      checklistTasksDone - the value for the checklistTasksDone record component
      checklistTasksAdded - the value for the checklistTasksAdded record component
      directMessagePriceChanged - the value for the directMessagePriceChanged record component
      forumTopicCreated - the value for the forumTopicCreated record component
      forumTopicEdited - the value for the forumTopicEdited record component
      forumTopicClosed - the value for the forumTopicClosed record component
      forumTopicReopened - the value for the forumTopicReopened record component
      generalForumTopicHidden - the value for the generalForumTopicHidden record component
      generalForumTopicUnhidden - the value for the generalForumTopicUnhidden record component
      giveawayCreated - the value for the giveawayCreated record component
      giveaway - the value for the giveaway record component
      giveawayWinners - the value for the giveawayWinners record component
      giveawayCompleted - the value for the giveawayCompleted record component
      paidMessagePriceChanged - the value for the paidMessagePriceChanged record component
      suggestedPostApproved - the value for the suggestedPostApproved record component
      suggestedPostApprovalFailed - the value for the suggestedPostApprovalFailed record component
      suggestedPostDeclined - the value for the suggestedPostDeclined record component
      suggestedPostPaid - the value for the suggestedPostPaid record component
      suggestedPostRefunded - the value for the suggestedPostRefunded record component
      videoChatScheduled - the value for the videoChatScheduled record component
      videoChatStarted - the value for the videoChatStarted record component
      videoChatEnded - the value for the videoChatEnded record component
      videoChatParticipantsInvited - the value for the videoChatParticipantsInvited record component
      webAppData - the value for the webAppData record component
      replyMarkup - the value for the replyMarkup record component
  • Method Details

    • chatId

      public String chatId()
    • isGroup

      public boolean isGroup()
    • isChannel

      public boolean isChannel()
    • isUser

      public boolean isUser()
    • isSuperGroup

      public boolean isSuperGroup()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • messageId

      public int messageId()
      Returns the value of the messageId record component.
      Specified by:
      messageId in interface MaybeInaccessibleMessage
      Returns:
      the value of the messageId record component
    • messageThreadId

      public int messageThreadId()
      Returns the value of the messageThreadId record component.
      Returns:
      the value of the messageThreadId record component
    • directMessagesTopic

      @Nullable public @Nullable DirectMessagesTopic directMessagesTopic()
      Returns the value of the directMessagesTopic record component.
      Returns:
      the value of the directMessagesTopic record component
    • from

      @Nullable public @Nullable User from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • senderChat

      @Nullable public @Nullable Chat senderChat()
      Returns the value of the senderChat record component.
      Returns:
      the value of the senderChat record component
    • senderBoostCount

      public int senderBoostCount()
      Returns the value of the senderBoostCount record component.
      Returns:
      the value of the senderBoostCount record component
    • senderBusinessBot

      @Nullable public @Nullable User senderBusinessBot()
      Returns the value of the senderBusinessBot record component.
      Returns:
      the value of the senderBusinessBot record component
    • date

      @NotNull public @NotNull Date date()
      Returns the value of the date record component.
      Specified by:
      date in interface MaybeInaccessibleMessage
      Returns:
      the value of the date record component
    • businessConnectionId

      @Nullable public @Nullable String businessConnectionId()
      Returns the value of the businessConnectionId record component.
      Returns:
      the value of the businessConnectionId record component
    • chat

      @NotNull public @NotNull Chat chat()
      Returns the value of the chat record component.
      Specified by:
      chat in interface MaybeInaccessibleMessage
      Returns:
      the value of the chat record component
    • forwardOrigin

      @Nullable public @Nullable MessageOrigin forwardOrigin()
      Returns the value of the forwardOrigin record component.
      Returns:
      the value of the forwardOrigin record component
    • isTopicMessage

      public boolean isTopicMessage()
      Returns the value of the isTopicMessage record component.
      Returns:
      the value of the isTopicMessage record component
    • isAutomaticForward

      public boolean isAutomaticForward()
      Returns the value of the isAutomaticForward record component.
      Returns:
      the value of the isAutomaticForward record component
    • replyToMessage

      @Nullable public @Nullable Message replyToMessage()
      Returns the value of the replyToMessage record component.
      Returns:
      the value of the replyToMessage record component
    • externalReply

      @Nullable public @Nullable ExternalReplyInfo externalReply()
      Returns the value of the externalReply record component.
      Returns:
      the value of the externalReply record component
    • quote

      @Nullable public @Nullable TextQuote quote()
      Returns the value of the quote record component.
      Returns:
      the value of the quote record component
    • replyToStory

      @Nullable public @Nullable Story replyToStory()
      Returns the value of the replyToStory record component.
      Returns:
      the value of the replyToStory record component
    • replyToChecklistTaskId

      public int replyToChecklistTaskId()
      Returns the value of the replyToChecklistTaskId record component.
      Returns:
      the value of the replyToChecklistTaskId record component
    • viaBot

      @Nullable public @Nullable User viaBot()
      Returns the value of the viaBot record component.
      Returns:
      the value of the viaBot record component
    • editDate

      @Nullable public @Nullable Date editDate()
      Returns the value of the editDate record component.
      Returns:
      the value of the editDate record component
    • hasProtectedContent

      public boolean hasProtectedContent()
      Returns the value of the hasProtectedContent record component.
      Returns:
      the value of the hasProtectedContent record component
    • isFromOffline

      public boolean isFromOffline()
      Returns the value of the isFromOffline record component.
      Returns:
      the value of the isFromOffline record component
    • isPaidPost

      public boolean isPaidPost()
      Returns the value of the isPaidPost record component.
      Returns:
      the value of the isPaidPost record component
    • mediaGroupId

      @Nullable public @Nullable String mediaGroupId()
      Returns the value of the mediaGroupId record component.
      Returns:
      the value of the mediaGroupId record component
    • authorSignature

      @Nullable public @Nullable String authorSignature()
      Returns the value of the authorSignature record component.
      Returns:
      the value of the authorSignature record component
    • paidStarCount

      public int paidStarCount()
      Returns the value of the paidStarCount record component.
      Returns:
      the value of the paidStarCount record component
    • text

      @Nullable public @Nullable String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • entities

      @Nullable public @Nullable MessageEntity[] entities()
      Returns the value of the entities record component.
      Returns:
      the value of the entities record component
    • linkPreviewOptions

      @Nullable public @Nullable LinkPreviewOptions linkPreviewOptions()
      Returns the value of the linkPreviewOptions record component.
      Returns:
      the value of the linkPreviewOptions record component
    • effectId

      @Nullable public @Nullable String effectId()
      Returns the value of the effectId record component.
      Returns:
      the value of the effectId record component
    • animation

      @Nullable public @Nullable Animation animation()
      Returns the value of the animation record component.
      Returns:
      the value of the animation record component
    • audio

      @Nullable public @Nullable Audio audio()
      Returns the value of the audio record component.
      Returns:
      the value of the audio record component
    • document

      @Nullable public @Nullable Document document()
      Returns the value of the document record component.
      Returns:
      the value of the document record component
    • paidMedia

      @Nullable public @Nullable PaidMedia paidMedia()
      Returns the value of the paidMedia record component.
      Returns:
      the value of the paidMedia record component
    • photo

      @Nullable public @Nullable PhotoSize[] photo()
      Returns the value of the photo record component.
      Returns:
      the value of the photo record component
    • sticker

      @Nullable public @Nullable Sticker sticker()
      Returns the value of the sticker record component.
      Returns:
      the value of the sticker record component
    • story

      @Nullable public @Nullable Story story()
      Returns the value of the story record component.
      Returns:
      the value of the story record component
    • video

      @Nullable public @Nullable Video video()
      Returns the value of the video record component.
      Returns:
      the value of the video record component
    • videoNote

      @Nullable public @Nullable VideoNote videoNote()
      Returns the value of the videoNote record component.
      Returns:
      the value of the videoNote record component
    • voice

      @Nullable public @Nullable Voice voice()
      Returns the value of the voice record component.
      Returns:
      the value of the voice record component
    • caption

      @Nullable public @Nullable String caption()
      Returns the value of the caption record component.
      Returns:
      the value of the caption record component
    • captionEntities

      @Nullable public @Nullable MessageEntity[] captionEntities()
      Returns the value of the captionEntities record component.
      Returns:
      the value of the captionEntities record component
    • showCaptionAboveMedia

      public boolean showCaptionAboveMedia()
      Returns the value of the showCaptionAboveMedia record component.
      Returns:
      the value of the showCaptionAboveMedia record component
    • hasMediaSpoiler

      public boolean hasMediaSpoiler()
      Returns the value of the hasMediaSpoiler record component.
      Returns:
      the value of the hasMediaSpoiler record component
    • checklist

      @Nullable public @Nullable Checklist checklist()
      Returns the value of the checklist record component.
      Returns:
      the value of the checklist record component
    • contact

      @Nullable public @Nullable Contact contact()
      Returns the value of the contact record component.
      Returns:
      the value of the contact record component
    • dice

      @Nullable public @Nullable Dice dice()
      Returns the value of the dice record component.
      Returns:
      the value of the dice record component
    • game

      @Nullable public @Nullable Game game()
      Returns the value of the game record component.
      Returns:
      the value of the game record component
    • poll

      @Nullable public @Nullable Poll poll()
      Returns the value of the poll record component.
      Returns:
      the value of the poll record component
    • venue

      @Nullable public @Nullable Venue venue()
      Returns the value of the venue record component.
      Returns:
      the value of the venue record component
    • location

      @Nullable public @Nullable Location location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • newChatMembers

      @Nullable public @Nullable User[] newChatMembers()
      Returns the value of the newChatMembers record component.
      Returns:
      the value of the newChatMembers record component
    • leftChatMember

      @Nullable public @Nullable User leftChatMember()
      Returns the value of the leftChatMember record component.
      Returns:
      the value of the leftChatMember record component
    • chatOwnerLeft

      @Nullable public @Nullable ChatOwnerLeft chatOwnerLeft()
      Returns the value of the chatOwnerLeft record component.
      Returns:
      the value of the chatOwnerLeft record component
    • chatOwnerChanged

      @Nullable public @Nullable ChatOwnerChanged chatOwnerChanged()
      Returns the value of the chatOwnerChanged record component.
      Returns:
      the value of the chatOwnerChanged record component
    • newChatTitle

      @Nullable public @Nullable String newChatTitle()
      Returns the value of the newChatTitle record component.
      Returns:
      the value of the newChatTitle record component
    • newChatPhoto

      @Nullable public @Nullable PhotoSize[] newChatPhoto()
      Returns the value of the newChatPhoto record component.
      Returns:
      the value of the newChatPhoto record component
    • deleteChatPhoto

      public boolean deleteChatPhoto()
      Returns the value of the deleteChatPhoto record component.
      Returns:
      the value of the deleteChatPhoto record component
    • groupChatCreated

      public boolean groupChatCreated()
      Returns the value of the groupChatCreated record component.
      Returns:
      the value of the groupChatCreated record component
    • supergroupChatCreated

      public boolean supergroupChatCreated()
      Returns the value of the supergroupChatCreated record component.
      Returns:
      the value of the supergroupChatCreated record component
    • channelChatCreated

      public boolean channelChatCreated()
      Returns the value of the channelChatCreated record component.
      Returns:
      the value of the channelChatCreated record component
    • messageAutoDeleteTimerChanged

      @Nullable public @Nullable MessageAutoDeleteTimerChanged messageAutoDeleteTimerChanged()
      Returns the value of the messageAutoDeleteTimerChanged record component.
      Returns:
      the value of the messageAutoDeleteTimerChanged record component
    • migrateToChatId

      @Nullable public @Nullable Long migrateToChatId()
      Returns the value of the migrateToChatId record component.
      Returns:
      the value of the migrateToChatId record component
    • migrateFromChatId

      @Nullable public @Nullable Long migrateFromChatId()
      Returns the value of the migrateFromChatId record component.
      Returns:
      the value of the migrateFromChatId record component
    • pinnedMessage

      @Nullable public @Nullable MaybeInaccessibleMessage pinnedMessage()
      Returns the value of the pinnedMessage record component.
      Returns:
      the value of the pinnedMessage record component
    • invoice

      @Nullable public @Nullable Invoice invoice()
      Returns the value of the invoice record component.
      Returns:
      the value of the invoice record component
    • successfulPayment

      @Nullable public @Nullable SuccessfulPayment successfulPayment()
      Returns the value of the successfulPayment record component.
      Returns:
      the value of the successfulPayment record component
    • refundedPayment

      @Nullable public @Nullable RefundedPayment refundedPayment()
      Returns the value of the refundedPayment record component.
      Returns:
      the value of the refundedPayment record component
    • userShared

      @Nullable public @Nullable UsersShared userShared()
      Returns the value of the userShared record component.
      Returns:
      the value of the userShared record component
    • chatShared

      @Nullable public @Nullable ChatShared chatShared()
      Returns the value of the chatShared record component.
      Returns:
      the value of the chatShared record component
    • gift

      @Nullable public @Nullable GiftInfo gift()
      Returns the value of the gift record component.
      Returns:
      the value of the gift record component
    • uniqueGift

      @Nullable public @Nullable UniqueGiftInfo uniqueGift()
      Returns the value of the uniqueGift record component.
      Returns:
      the value of the uniqueGift record component
    • giftUpgradeSent

      @Nullable public @Nullable GiftInfo giftUpgradeSent()
      Returns the value of the giftUpgradeSent record component.
      Returns:
      the value of the giftUpgradeSent record component
    • connectedWebsite

      @Nullable public @Nullable String connectedWebsite()
      Returns the value of the connectedWebsite record component.
      Returns:
      the value of the connectedWebsite record component
    • writeAccessAllowed

      @Nullable public @Nullable WriteAccessAllowed writeAccessAllowed()
      Returns the value of the writeAccessAllowed record component.
      Returns:
      the value of the writeAccessAllowed record component
    • passportData

      @Nullable public @Nullable PassportData passportData()
      Returns the value of the passportData record component.
      Returns:
      the value of the passportData record component
    • proximityAlertTriggered

      @Nullable public @Nullable ProximityAlertTriggered proximityAlertTriggered()
      Returns the value of the proximityAlertTriggered record component.
      Returns:
      the value of the proximityAlertTriggered record component
    • boostAdded

      @Nullable public @Nullable ChatBoostAdded boostAdded()
      Returns the value of the boostAdded record component.
      Returns:
      the value of the boostAdded record component
    • chatBackgroundSet

      @Nullable public @Nullable ChatBackground chatBackgroundSet()
      Returns the value of the chatBackgroundSet record component.
      Returns:
      the value of the chatBackgroundSet record component
    • checklistTasksDone

      @Nullable public @Nullable ChecklistTasksDone checklistTasksDone()
      Returns the value of the checklistTasksDone record component.
      Returns:
      the value of the checklistTasksDone record component
    • checklistTasksAdded

      @Nullable public @Nullable ChecklistTasksAdded checklistTasksAdded()
      Returns the value of the checklistTasksAdded record component.
      Returns:
      the value of the checklistTasksAdded record component
    • directMessagePriceChanged

      @Nullable public @Nullable DirectMessagePriceChanged directMessagePriceChanged()
      Returns the value of the directMessagePriceChanged record component.
      Returns:
      the value of the directMessagePriceChanged record component
    • forumTopicCreated

      @Nullable public @Nullable ForumTopicCreated forumTopicCreated()
      Returns the value of the forumTopicCreated record component.
      Returns:
      the value of the forumTopicCreated record component
    • forumTopicEdited

      @Nullable public @Nullable ForumTopicEdited forumTopicEdited()
      Returns the value of the forumTopicEdited record component.
      Returns:
      the value of the forumTopicEdited record component
    • forumTopicClosed

      @Nullable public @Nullable ForumTopicClosed forumTopicClosed()
      Returns the value of the forumTopicClosed record component.
      Returns:
      the value of the forumTopicClosed record component
    • forumTopicReopened

      @Nullable public @Nullable ForumTopicReopened forumTopicReopened()
      Returns the value of the forumTopicReopened record component.
      Returns:
      the value of the forumTopicReopened record component
    • generalForumTopicHidden

      @Nullable public @Nullable GeneralForumTopicHidden generalForumTopicHidden()
      Returns the value of the generalForumTopicHidden record component.
      Returns:
      the value of the generalForumTopicHidden record component
    • generalForumTopicUnhidden

      @Nullable public @Nullable GeneralForumTopicUnhidden generalForumTopicUnhidden()
      Returns the value of the generalForumTopicUnhidden record component.
      Returns:
      the value of the generalForumTopicUnhidden record component
    • giveawayCreated

      @Nullable public @Nullable GiveawayCreated giveawayCreated()
      Returns the value of the giveawayCreated record component.
      Returns:
      the value of the giveawayCreated record component
    • giveaway

      @Nullable public @Nullable Giveaway giveaway()
      Returns the value of the giveaway record component.
      Returns:
      the value of the giveaway record component
    • giveawayWinners

      @Nullable public @Nullable GiveawayWinners giveawayWinners()
      Returns the value of the giveawayWinners record component.
      Returns:
      the value of the giveawayWinners record component
    • giveawayCompleted

      @Nullable public @Nullable GiveawayCompleted giveawayCompleted()
      Returns the value of the giveawayCompleted record component.
      Returns:
      the value of the giveawayCompleted record component
    • paidMessagePriceChanged

      @Nullable public @Nullable PaidMessagePriceChanged paidMessagePriceChanged()
      Returns the value of the paidMessagePriceChanged record component.
      Returns:
      the value of the paidMessagePriceChanged record component
    • suggestedPostApproved

      @Nullable public @Nullable SuggestedPostApproved suggestedPostApproved()
      Returns the value of the suggestedPostApproved record component.
      Returns:
      the value of the suggestedPostApproved record component
    • suggestedPostApprovalFailed

      @Nullable public @Nullable SuggestedPostApprovalFailed suggestedPostApprovalFailed()
      Returns the value of the suggestedPostApprovalFailed record component.
      Returns:
      the value of the suggestedPostApprovalFailed record component
    • suggestedPostDeclined

      @Nullable public @Nullable SuggestedPostDeclined suggestedPostDeclined()
      Returns the value of the suggestedPostDeclined record component.
      Returns:
      the value of the suggestedPostDeclined record component
    • suggestedPostPaid

      @Nullable public @Nullable SuggestedPostPaid suggestedPostPaid()
      Returns the value of the suggestedPostPaid record component.
      Returns:
      the value of the suggestedPostPaid record component
    • suggestedPostRefunded

      @Nullable public @Nullable SuggestedPostRefunded suggestedPostRefunded()
      Returns the value of the suggestedPostRefunded record component.
      Returns:
      the value of the suggestedPostRefunded record component
    • videoChatScheduled

      @Nullable public @Nullable VideoChatScheduled videoChatScheduled()
      Returns the value of the videoChatScheduled record component.
      Returns:
      the value of the videoChatScheduled record component
    • videoChatStarted

      @Nullable public @Nullable VideoChatStarted videoChatStarted()
      Returns the value of the videoChatStarted record component.
      Returns:
      the value of the videoChatStarted record component
    • videoChatEnded

      @Nullable public @Nullable VideoChatEnded videoChatEnded()
      Returns the value of the videoChatEnded record component.
      Returns:
      the value of the videoChatEnded record component
    • videoChatParticipantsInvited

      @Nullable public @Nullable VideoChatParticipantsInvited videoChatParticipantsInvited()
      Returns the value of the videoChatParticipantsInvited record component.
      Returns:
      the value of the videoChatParticipantsInvited record component
    • webAppData

      @Nullable public @Nullable WebAppData webAppData()
      Returns the value of the webAppData record component.
      Returns:
      the value of the webAppData record component
    • replyMarkup

      @Nullable public @Nullable ReplyKeyboard replyMarkup()
      Returns the value of the replyMarkup record component.
      Returns:
      the value of the replyMarkup record component