<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="make-link-to-message.html"><spanclass="token function">makeLinkToMessage</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">username<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">messageId<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types/index.html#469798271%2FClasslikes%2F-1982836883">MessageId</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></div><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="make-link-to-message.html"><spanclass="token function">makeLinkToMessage</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">username<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types/-username/index.html">Username</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">messageId<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types/index.html#469798271%2FClasslikes%2F-1982836883">MessageId</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></div><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="make-link-to-message.html"><spanclass="token function">makeLinkToMessage</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">chat<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types.chat/-username-chat/index.html">UsernameChat</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">messageId<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types/index.html#469798271%2FClasslikes%2F-1982836883">MessageId</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token operator">?</span></div><br><hr><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="make-link-to-message.html"><spanclass="token function">makeLinkToMessage</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">chat<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types.chat/-chat/index.html">Chat</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">messageId<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types/index.html#469798271%2FClasslikes%2F-1982836883">MessageId</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token operator">?</span></div><pclass="paragraph">Link which can be used as by any user to get access to <ahref="../dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a>. Returns null in case when there are no known way to build link (for <ahref="../dev.inmo.tgbotapi.types.chat/-private-chat/index.html">PrivateChat</a>s, for example)</p></div></div>