Class TdApi.GetMessageLink

Enclosing class:
TdApi

public static class TdApi.GetMessageLink
extends TdApi.Function
Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels. This is an offline request.

Returns MessageLink

  • Field Details

    • chatId

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

      public long messageId
      Identifier of the message.
    • forAlbum

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

      public boolean forComment
      Pass true to create a link to the message as a channel post comment, or from a message thread.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • 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. This is an offline request.

      Returns MessageLink

    • GetMessageLink

      public GetMessageLink​(long chatId, long messageId, boolean forAlbum, boolean forComment)
      Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels. This is an offline request.

      Returns MessageLink

      Parameters:
      chatId - long Identifier of the chat to which the message belongs.
      messageId - long Identifier of the message.
      forAlbum - boolean Pass true to create a link for the whole media album.
      forComment - boolean Pass true to create a link to the message as a channel post comment, or from a message thread.
    • GetMessageLink

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