AsyncMessageListenerMatches</span></span>
<span>(</span><span>keyword: str | Pattern)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class AsyncMessageListenerMatches(AsyncMiddleware):
    def __init__(self, keyword: Union[str, Pattern]):
        &#34;&#34;&#34;Captures matched keywords and saves the values in context.&#34;&#34;&#34;
        self.keyword = keyword

    async def async_process(
        self,
        *,
     