<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><spanclass="token operator"><</span><ahref="filter-commands-inside-text-messages.html">T</a><spanclass="token operator"> : </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.update.abstracts/-base-sent-message-update/index.html">BaseSentMessageUpdate</a><spanclass="token operator">></span><spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><spanclass="token operator"><</span><ahref="filter-commands-inside-text-messages.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="filter-commands-inside-text-messages.html"><spanclass="token function">filterCommandsInsideTextMessages</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">commandRegex<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-regex/index.html">Regex</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><spanclass="token operator"><</span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.html">ContentMessage</a><spanclass="token operator"><</span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.content/-text-content/index.html">TextContent</a><spanclass="token operator">></span><spanclass="token operator">></span></div><pclass="paragraph">Convert incoming <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.abstracts/-content-message/content.html">dev.inmo.tgbotapi.types.message.abstracts.ContentMessage.content</a> of messages with fullEntitiesList and check that incoming message contains <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.textsources/-bot-command-text-source/index.html">BotCommandTextSource</a>. Besides, it is checking that <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-regex/matches.html">BotCommandTextSource.command</a> with incoming <ahref="filter-commands-inside-text-messages.html">commandRegex</a></p><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">The same message in case if it contains somewhere in text <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.textsources/-bot-command-text-source/index.html">BotCommandTextSource</a> with <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.message.textsources/-bot-command-text-source/command.html">Regex.matches</a></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><span>full</span><wbr><span>Entities</span><wbr><span><span>List</span></span></div></span></div><div></div></div></div><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="as-content-messages-flow.html"><span>as</span><wbr><span>Content</span><wbr><span>Messages</span><wbr><span><span>Flow</span></span></a></div></span></div><div></div></div></div><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="../dev.inmo.tgbotapi.extensions.utils/only-text-content-messages.html"><span>only</span><wbr><span>Text</span><wbr><span>Content</span><wbr><span><span>Messages</span