<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":tgbotapi.utils:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">inline </span><spanclass="token keyword">fun </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a><spanclass="token punctuation">.</span><ahref="same-message.html"><spanclass="token function">sameMessage</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">chatId<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types/-chat-identifier/index.html">ChatIdentifier</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">messageId<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types/-message-id/index.html">MessageId</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></div><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">true in case if <ahref="../../tgbotapi.utils/dev.inmo.tgbotapi.extensions.utils.extensions/index.html">this</a> message is from the same chat (with id == <ahref="same-message.html">chatId</a>) and <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/message-id.html">this</a> equal <ahref="same-message.html">messageId</a> identifier</p></span><hr><divclass="symbol monospace"><spanclass="token keyword">inline </span><spanclass="token keyword">fun </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a><spanclass="token punctuation">.</span><ahref="same-message.html"><spanclass="token function">sameMessage</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">chat<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.chat/-chat/index.html">Chat</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">messageId<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types/-message-id/index.html">MessageId</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></div><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">true in case if <ahref="../../tgbotapi.utils/dev.inmo.tgbotapi.extensions.utils.extensions/index.html">this</a> message is from the same <ahref="same-message.html">chat</a> and <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/message-id.html">this</a> equal <ahref="same-message.html">messageId</a> identifier</p></span><hr><divclass="symbol monospace"><spanclass="token keyword">inline </span><spanclass="token keyword">fun </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a><spanclass="token punctuation">.</span><ahref="same-message.html"><spanclass="token function">sameMessage</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">other<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></div><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">true in case if <ahref="../../tgbotapi.utils/dev.inmo.tgbotapi.extensions.utils.extensions/index.html">this</a> message is the same as <ahref="same-message.html">other</a>. The same here means that these messages from one chat and have equal <ahref="../../tgbotapi.core/