- Enclosing class:
- TdApi
Returns an HTTPS link to a message in
a chat. Available only for already
sent messages in supergroups and
channels, or if message.canGetMediaTimestampLinks
and a media timestamp link is generated.
This is an offline request.
Returns
MessageLink
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat to which the message belongs.static final int
boolean
Pass true to create a link for the whole media album.boolean
Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic.int
If not 0, timestamp from which the video/audio/video note/voice note playing must start, in seconds.long
Identifier of the message. -
Constructor Summary
ConstructorDescriptionReturns an HTTPS link to a message in a chat.GetMessageLink
(long chatId, long messageId, int mediaTimestamp, boolean forAlbum, boolean inMessageThread) Returns an HTTPS link to a message in a chat.GetMessageLink
(DataInput input) Returns an HTTPS link to a message in a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the message belongs. -
messageId
public long messageIdIdentifier of the message. -
mediaTimestamp
public int mediaTimestampIf not 0, timestamp from which the video/audio/video note/voice note playing must start, in seconds. The media can be in the message content or in its web page preview. -
forAlbum
public boolean forAlbumPass true to create a link for the whole media album. -
inMessageThread
public boolean inMessageThreadPass true to create a link to the message as a channel post comment, in a message thread, or a forum topic. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
GetMessageLink
public GetMessageLink()Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request. ReturnsMessageLink
-
GetMessageLink
public GetMessageLink(long chatId, long messageId, int mediaTimestamp, boolean forAlbum, boolean inMessageThread) Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request. ReturnsMessageLink
- Parameters:
chatId
- long Identifier of the chat to which the message belongs.messageId
- long Identifier of the message.mediaTimestamp
- int If not 0, timestamp from which the video/audio/video note/voice note playing must start, in seconds. The media can be in the message content or in its web page preview.forAlbum
- boolean Pass true to create a link for the whole media album.inMessageThread
- boolean Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic.
-
GetMessageLink
Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.canGetMediaTimestampLinks and a media timestamp link is generated. This is an offline request. ReturnsMessageLink
- 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()
-