> For the complete documentation index, see [llms.txt](https://rahulps1000.gitbook.io/pyropatch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rahulps1000.gitbook.io/pyropatch/patches/listen/inline-query-listener.md).

# Inline Query Listener

Listens for an inline query update

### listen\_inline\_query()

Parameters

* **user\_id**(`int` ,*optional*) – Unique identifier (int) of the target user.
* **filters** ([`filters`](https://docs.pyrogram.org/api/filters.html#module-pyrogram.filters), *optional*) – Pass one or more filters to allow only a subset of chosen inline results to be passed in your function.
* **timeout** (`int,`*optional*) – To specify the timeout duration in seconds for a client to listen for a message.

Returns : [InlineQuery](https://docs.pyrogram.org/api/types/InlineQuery#pyrogram.types.InlineQuery)

Example

```
await app.listen_inline_query(user_id=user_id, filters=filters, timeout=timeout)
```

### cancel\_inline\_listener()

Parameters

* **user\_id** (`int` ,*optional*) – Unique identifier (int) of the target user.

Returns : None

Example

```
await app.cancel_inline_listener(user_id=user_id)
```
