Class TdApi.GetMessageLink
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.MessageLink>
dev.voroby.springframework.telegram.client.TdApi.GetMessageLink
- Enclosing class:
- TdApi
Returns an HTTPS link to a message in a chat. Available only if messageProperties.canGetLink, or if messageProperties.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request.
Returns MessageLink
-
Field Summary
Modifier and TypeFieldDescriptionlong
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
ConstructorDescriptionDefault 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 inMessageThread) Creates a function, which returns an HTTPS link to a message in a chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the message belongs. -
messageId
public long messageIdIdentifier of the message. -
mediaTimestamp
public int mediaTimestampIf 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 link preview. -
forAlbum
public boolean forAlbumPass true to create a link for the whole media album. -
inMessageThread
public boolean inMessageThreadPass 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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetMessageLink
public GetMessageLink()Default constructor for a function, which returns an HTTPS link to a message in a chat. Available only if messageProperties.canGetLink, or if messageProperties.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) Creates a function, which returns an HTTPS link to a message in a chat. Available only if messageProperties.canGetLink, or if messageProperties.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 link 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.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-