public static class TdApi.MessageLinkInfo extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
If found, identifier of the chat to which the link points, 0 otherwise.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
forAlbum
True, if the whole media album to which the message belongs is linked.
|
boolean |
isPublic
True, if the link is a public link for a message or a forum topic in a chat.
|
int |
mediaTimestamp
Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified.
|
TdApi.Message |
message
If found, the linked message; may be null.
|
long |
messageThreadId
If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.
|
| Constructor and Description |
|---|
MessageLinkInfo()
Contains information about a link to a message or a forum topic in a chat.
|
MessageLinkInfo(boolean isPublic,
long chatId,
long messageThreadId,
TdApi.Message message,
int mediaTimestamp,
boolean forAlbum)
Contains information about a link to a message or a forum topic in a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean isPublic
public long chatId
public long messageThreadId
public TdApi.Message message
public int mediaTimestamp
public boolean forAlbum
public static final int CONSTRUCTOR
public MessageLinkInfo()
public MessageLinkInfo(boolean isPublic,
long chatId,
long messageThreadId,
TdApi.Message message,
int mediaTimestamp,
boolean forAlbum)
isPublic - True, if the link is a public link for a message or a forum topic in a chat.chatId - If found, identifier of the chat to which the link points, 0 otherwise.messageThreadId - If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.message - If found, the linked message; may be null.mediaTimestamp - Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its link preview.forAlbum - True, if the whole media album to which the message belongs is linked.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object