Skip to content

getMessageLink

Function · TDLib 1.8.67 · d1085f9c

Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline method

getMessageLink(
  chat_id: int53,
  message_id: int53,
  media_timestamp: int32,
  checklist_task_id: int32,
  poll_option_id: string,
  for_album: Bool,
  in_message_thread: Bool
) → MessageLink

chat_id

int53

Identifier of the chat to which the message belongs

message_id

int53

Identifier of the message

media_timestamp

int32

If not 0, timestamp from which the video/audio/video note/voice note/story playing must start, in seconds. The media can be in the message content or in its link preview

checklist_task_id

int32

If not 0, identifier of the checklist task in the message to be linked

poll_option_id

string

If not empty, identifier of the poll option in the message to be linked

for_album

Bool

Pass true to create a link for the whole media album

in_message_thread

Bool

Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic