MadelineProto/docs/TD_docs/constructors/updateNewChosenInlineResult.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

49 lines
1.5 KiB
Markdown

---
title: updateNewChosenInlineResult
description: Bots only. User has chosen a result of the inline query
---
## Constructor: updateNewChosenInlineResult
[Back to constructors index](index.md)
Bots only. User has chosen a result of the inline query
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|sender\_user\_id|[int](../types/int.md) | Yes|Identifier of the user who sent the query|
|user\_location|[location](../types/location.md) | Yes|User location, provided by the client, nullable|
|query|[string](../types/string.md) | Yes|Text of the query|
|result\_id|[string](../types/string.md) | Yes|Identifier of the chosen result|
|inline\_message\_id|[string](../types/string.md) | Yes|Identifier of the sent inline message, if known|
### Type: [Update](../types/Update.md)
### Example:
```
$updateNewChosenInlineResult = ['_' => 'updateNewChosenInlineResult', 'sender_user_id' => int, 'user_location' => location, 'query' => 'string', 'result_id' => 'string', 'inline_message_id' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateNewChosenInlineResult", "sender_user_id": int, "user_location": location, "query": "string", "result_id": "string", "inline_message_id": "string"}
```
Or, if you're into Lua:
```
updateNewChosenInlineResult={_='updateNewChosenInlineResult', sender_user_id=int, user_location=location, query='string', result_id='string', inline_message_id='string'}
```