Skip to content

getPublicMessageLink

Sahri Riza Umami edited this page Sep 21, 2017 · 4 revisions

Returns public HTTPS link to a message.
Available only for messages in public channels.

getPublicMessageLink(chat_id, message_id)
Field Type Description
chat_id int53 Identifier of the chat, message belongs to
message_id int53 Identifier of the message

Example

  • Get public HTTPS link to message 666 from chat 1234567890.
getPublicMessageLink(1234567890, 666)

Response:

{
  _ = "publicMessageLink",
  url = "https://t.me/merekpepeppepepepek/12"
}

Frequently Asked Questions
The Functions

Clone this wiki locally