<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-thread.html"><spanclass="token function">sameThread</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 ">threadId<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types/-message-thread-id/index.html">MessageThreadId</a><spanclass="token operator">?</span><spanclass="token operator"> = </span>chatId.threadId</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><pclass="paragraph">Thread is the same thing that topic</p><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 in the chat <ahref="same-thread.html">chatId</a> and topic <ahref="same-thread.html">threadId</a>. The same here means that these messages from one chat and have equal <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.utils.extensions/index.html">Message.threadIdOrNull</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-thread.html"><spanclass="token function">sameThread</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 ">threadId<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types/-message-thread-id/index.html">MessageThreadId</a><spanclass="token operator">?</span><spanclass="token operator"> = </span>chat.id.threadId</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><pclass="paragraph">Thread is the same thing that topic</p><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 <ahref="same-thread.html">chat</a> and topic <ahref="same-thread.html">threadId</a>. The same here means that these messages from one chat and have equal <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.utils.extensions/index.html">Message.threadIdOrNull</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-thread.html"><spanclass="token function">sameThread</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:/