java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageLinkInfo
- Enclosing class:
- TdApi
Contains information about a link to
a message or a forum topic in a chat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIf found, identifier of the chat to which the link points, 0 otherwise.static final intbooleanTrue, if the whole media album to which the message belongs is linked.booleanTrue, if the link is a public link for a message or a forum topic in a chat.intTimestamp 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.longIf found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing. -
Constructor Summary
ConstructorsConstructorDescriptionContains 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.MessageLinkInfo(DataInput input) Contains information about a link to a message or a forum topic in a chat. -
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 or a forum topic in a chat. -
chatId
public long chatIdIf found, identifier of the chat to which the link points, 0 otherwise. -
messageThreadId
public long messageThreadIdIf 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
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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
MessageLinkInfo
public MessageLinkInfo()Contains information about a link to a message or a forum topic in a chat. -
MessageLinkInfo
public 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.- Parameters:
isPublic- boolean True, if the link is a public link for a message or a forum topic in a chat.chatId- long If found, identifier of the chat to which the link points, 0 otherwise.messageThreadId- long 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- 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.
-
MessageLinkInfo
Contains information about a link to a message or a forum topic in a chat.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-