pub async fn get_message_link(
chat_id: i64,
message_id: i64,
media_timestamp: i32,
for_album: bool,
in_message_thread: bool,
client_id: i32,
) -> Result<MessageLink, Error>Expand description
Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline request
ยงArguments
chat_id- Identifier of the chat to which the message belongsmessage_id- Identifier of the messagemedia_timestamp- 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 web page previewfor_album- Pass true to create a link for the whole media albumin_message_thread- Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topicclient_id- The client id to send the request to