Module tdlight.api

Class TdApi.MessageLinkInfo

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

public static final class TdApi.MessageLinkInfo extends TdApi.Object
Contains information about a link to a message or a forum topic in a chat.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    If found, identifier of the chat to which the link points, 0 otherwise.
    static final int
    Identifier uniquely determining type of the object.
    boolean
    True, if the whole media album to which the message belongs is linked.
    boolean
    True, if the link is a public link for a message or a forum topic in a chat.
    int
    Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified.
    If found, the linked message; may be null.
    long
    If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Contains information about a link to a message or a forum topic in a chat.
    MessageLinkInfo(boolean isPublic, long chatId, long messageThreadId, TdApi.Message message, int mediaTimestamp, boolean forAlbum)
    Contains information about a link to a message or a forum topic in a chat.
    Contains information about a link to a message or a forum topic in a chat.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • isPublic

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

      public long chatId
      If found, identifier of the chat to which the link points, 0 otherwise.
    • messageThreadId

      public long messageThreadId
      If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.
    • message

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

      public int mediaTimestamp
      Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview.
    • forAlbum

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

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • MessageLinkInfo

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

      public MessageLinkInfo(boolean isPublic, long chatId, long messageThreadId, TdApi.Message message, int mediaTimestamp, boolean forAlbum)
      Contains information about a link to a message or a forum topic in a chat.
      Parameters:
      isPublic - True, if the link is a public link for a message or a forum topic in a chat.
      chatId - If found, identifier of the chat to which the link points, 0 otherwise.
      messageThreadId - If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.
      message - If found, the linked message; may be null.
      mediaTimestamp - Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview.
      forAlbum - True, if the whole media album to which the message belongs is linked.
    • MessageLinkInfo

      public MessageLinkInfo(DataInput input) throws IOException
      Contains information about a link to a message or a forum topic in a chat.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object