Package it.tdlight.jni
Class TdApi.MessageLinkInfo
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageLinkInfo
- Enclosing class:
- TdApi
Contains information about a link to
a message in a chat.
-
Field Summary
Modifier and TypeFieldDescriptionlong
If found, identifier of the chat to which the message belongs, 0 otherwise.static final int
boolean
True, if the whole media album to which the message belongs is linked.boolean
True, if the message is linked as a channel post comment or from a message thread.boolean
True, if the link is a public link for a message in a chat.int
Timestamp from which the video/audio/video note/voice note playing must start, in seconds; 0 if not specified.If found, the linked message; may be null. -
Constructor Summary
ConstructorDescriptionContains 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.MessageLinkInfo
(DataInput input) -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
isPublic
public boolean isPublicTrue, if the link is a public link for a message in a chat. -
chatId
public long chatIdIf found, identifier of the chat to which the message belongs, 0 otherwise. -
message
If found, the linked message; may be null. -
mediaTimestamp
public int mediaTimestampTimestamp 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 forAlbumTrue, if the whole media album to which the message belongs is linked. -
forComment
public boolean forCommentTrue, if the message is linked as a channel post comment or from a message thread. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
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
- boolean True, if the link is a public link for a message in a chat.chatId
- long If found, identifier of the chat to which the message belongs, 0 otherwise.message
- Message If found, the linked message; may be null.mediaTimestamp
- int 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
- boolean True, if the whole media album to which the message belongs is linked.forComment
- boolean True, if the message is linked as a channel post comment or from a message thread.
-
MessageLinkInfo
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-