<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">fun </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a><spanclass="token punctuation">.</span><ahref="forum-message.html"><spanclass="token function">forumMessage</span></a><spanclass="token punctuation">(</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">A predicate to test that message has been sent in the forum. Use it as the <codeclass="lang-kotlin">initialFilter</code> parameter in behaviour builder triggers. E.g.</p><divclass="sample-container"><pre><codeclass="block lang-kotlin"theme="idea">onContentMessage(<br> initialFilter = Message::forumMessage<br>) {<br> // The message here will be from forum<br>}</code></pre><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">true if this <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a> is from forum (<ahref="../../tgbotapi.core/dev.inmo.tgbotapi.utils.extensions/index.html">threadIdOrNull</a> is not null). False otherwise.</p></span><h4class="">See also</h4><divclass="table"><divclass="table-row"data-filterable-current=":tgbotapi.utils:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.utils:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="not-forum-message.html"><span>not</span><wbr><span>Forum</span><wbr><span><span>Message</span></span></a></div></span></div><div></div></div></div></div></div></div>