Class TdApi.MessageLinkInfo

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageLinkInfo
Enclosing class:
TdApi

public static class TdApi.MessageLinkInfo
extends TdApi.Object
Contains information about a link to a message in a chat.
  • Field Details

    • isPublic

      public boolean isPublic
      True, if the link is a public link for a message in a chat.
    • chatId

      public long chatId
      If found, identifier of the chat to which the message belongs, 0 otherwise.
    • message

      public TdApi.Message message
      If found, the linked message; may be null.
    • forAlbum

      public boolean forAlbum
      True, if the whole media album to which the message belongs is linked.
    • forComment

      public boolean forComment
      True, if the message is linked as a channel post comment or from a message thread.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • MessageLinkInfo

      public MessageLinkInfo()
      Contains information about a link to a message in a chat.
    • MessageLinkInfo

      public MessageLinkInfo​(boolean isPublic, long chatId, TdApi.Message message, boolean forAlbum, boolean forComment)
      Contains information about a link to a message in a chat.
      Parameters:
      isPublic - boolean True, if the link is a public link for a message in a chat.
      chatId - long If found, identifier of the chat to which the message belongs, 0 otherwise.
      message - Message If found, the linked message; may be null.
      forAlbum - boolean True, if the whole media album to which the message belongs is linked.
      forComment - boolean True, if the message is linked as a channel post comment or from a message thread.
    • MessageLinkInfo

      public MessageLinkInfo​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details