<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="../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="../dev.inmo.tgbotapi.types.message.abstracts/-message/index.html">Message</a> is from forum (<ahref="../dev.inmo.tgbotapi.utils.extensions/thread-id-or-null.html">threadIdOrNull</a> is not null). False otherwise.</p></span><h4class="">See also</h4><divdata-togglable="See also"><divclass="table"data-togglable="See also"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><ahref="not-forum-message.html"><span>not</span><wbr></wbr><span>Forum</span><wbr></wbr><span><span>Message</span></span></a></div></span></div><div></div></div></div></div></div></div></div>