Package org.drinkless.tdlib
Class TdApi.MessageLinkInfo
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.MessageLinkInfo
-
- Enclosing class:
- TdApi
public static class TdApi.MessageLinkInfo extends TdApi.Object
Contains information about a link to a message in a chat.
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdIf found, identifier of the chat to which the message belongs, 0 otherwise.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanforAlbumTrue, if the whole media album to which the message belongs is linked.booleanforCommentTrue, if the message is linked as a channel post comment or from a message thread.booleanisPublicTrue, if the link is a public link for a message in a chat.intmediaTimestampTimestamp from which the video/audio/video note/voice note playing must start, in seconds; 0 if not specified.TdApi.MessagemessageIf found, the linked message; may be null.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
isPublic
public boolean isPublic
True, if the link is a public link for a message in a chat.
-
chatId
public long chatId
If found, identifier of the chat to which the message belongs, 0 otherwise.
-
message
public TdApi.Message message
If found, the linked message; may be null.
-
mediaTimestamp
public int 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
public boolean forAlbum
True, if the whole media album to which the message belongs is linked.
-
forComment
public boolean forComment
True, if the message is linked 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
-
MessageLinkInfo
public MessageLinkInfo()
Contains information about a link to a message in a chat.
-
MessageLinkInfo
public 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.- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-