public static class TdApi.GetMessageLink extends TdApi.Function<TdApi.MessageLink>
Returns MessageLink
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat to which the message belongs.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
forAlbum
Pass true to create a link for the whole media album.
|
boolean |
inMessageThread
Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic.
|
int |
mediaTimestamp
If not 0, timestamp from which the video/audio/video note/voice note/story playing must start, in seconds.
|
long |
messageId
Identifier of the message.
|
| Constructor and 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 inMessageThread)
Creates a function, which returns an HTTPS link to a message in a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageId
public int mediaTimestamp
public boolean forAlbum
public boolean inMessageThread
public static final int CONSTRUCTOR
public GetMessageLink()
Returns MessageLink
public GetMessageLink(long chatId,
long messageId,
int mediaTimestamp,
boolean forAlbum,
boolean inMessageThread)
Returns MessageLink
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object