Module tdlight.api

Class TdApi.GetMessageLink

Enclosing class:
TdApi

public static final class TdApi.GetMessageLink extends TdApi.Function<TdApi.MessageLink>
Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request.

Returns MessageLink

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the chat to which the message belongs.
    static final int
    Identifier uniquely determining type of the object.
    boolean
    Pass true to create a link for the whole media album.
    boolean
    Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic.
    int
    If not 0, timestamp from which the video/audio/video note/voice note/story playing must start, in seconds.
    long
    Identifier of the message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Returns an HTTPS link to a message in a chat.
    GetMessageLink(long chatId, long messageId, int mediaTimestamp, boolean forAlbum, boolean inMessageThread)
    Returns an HTTPS link to a message in a chat.
    Returns an HTTPS link to a message 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.Function

    toString

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

    serialize

    Methods inherited from class java.lang.Object

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

    • chatId

      public long chatId
      Identifier of the chat to which the message belongs.
    • messageId

      public long messageId
      Identifier of the message.
    • mediaTimestamp

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

      public boolean forAlbum
      Pass true to create a link for the whole media album.
    • inMessageThread

      public boolean inMessageThread
      Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic.
    • CONSTRUCTOR

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

    • GetMessageLink

      public GetMessageLink()
      Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request.

      Returns MessageLink

    • GetMessageLink

      public GetMessageLink(long chatId, long messageId, int mediaTimestamp, boolean forAlbum, boolean inMessageThread)
      Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request.

      Returns MessageLink

      Parameters:
      chatId - Identifier of the chat to which the message belongs.
      messageId - Identifier of the message.
      mediaTimestamp - If not 0, timestamp from which the video/audio/video note/voice note/story playing must start, in seconds. The media can be in the message content or in its web page preview.
      forAlbum - Pass true to create a link for the whole media album.
      inMessageThread - Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic.

      Returns MessageLink

    • GetMessageLink

      public GetMessageLink(DataInput input) throws IOException
      Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request.

      Returns MessageLink

      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