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 message belongs, 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 |
forComment
True, if the message is linked as a channel post comment or from a message thread.
|
boolean |
isPublic
True, if the link is a public link for a message in a chat.
|
int |
mediaTimestamp
Timestamp from which the video/audio/video note/voice note playing must start, in seconds; 0 if not specified.
|
TdApi.Message |
message
If found, the linked message; may be null.
|
Constructor and Description |
---|
MessageLinkInfo()
Contains information about a link to a message in a chat.
|
MessageLinkInfo(boolean isPublic,
long chatId,
TdApi.Message message,
int mediaTimestamp,
boolean forAlbum,
boolean forComment)
Contains information about a link to a message in a chat.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean isPublic
public long chatId
@Nullable public TdApi.Message message
public int mediaTimestamp
public boolean forAlbum
public boolean forComment
public static final int CONSTRUCTOR
public MessageLinkInfo()
public MessageLinkInfo(boolean isPublic, long chatId, TdApi.Message message, int mediaTimestamp, boolean forAlbum, boolean forComment)
isPublic
- True, if the link is a public link for a message in a chat.chatId
- If found, identifier of the chat to which the message belongs, 0 otherwise.message
- If found, the linked message; may be null.mediaTimestamp
- Timestamp from which the video/audio/video note/voice note playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview.forAlbum
- True, if the whole media album to which the message belongs is linked.forComment
- True, if the message is linked as a channel post comment or from a message thread.public int getConstructor()
getConstructor
in class TdApi.Object