Package org.drinkless.tdlib
Class TdApi.GetMessageLink
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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, 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 longchatIdIdentifier of the chat to which the message belongs.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanforAlbumPass true to create a link for the whole media album.booleanforCommentPass true to create a link to the message as a channel post comment, or from a message thread.intmediaTimestampIf not 0, timestamp from which the video/audio/video note/voice note playing must start, in seconds.longmessageIdIdentifier of the message.
-
Constructor Summary
Constructors Constructor Description GetMessageLink()Default constructor for a function, which returns an HTTPS link to a message in a chat.GetMessageLink(long chatId, long messageId, int mediaTimestamp, boolean forAlbum, boolean forComment)Creates a function, which returns an HTTPS link to a message in a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
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 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.
-
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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetMessageLink
public GetMessageLink()
Default constructor for a function, which 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 forComment)Creates a function, which 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 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.forComment- Pass true to create a link to the message as a channel post comment, or from a message thread.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-