MadelineProto/docs/TD_docs/constructors/updateNewChosenInlineResult.md

49 lines
1.5 KiB
Markdown
Raw Normal View History

---
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 |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|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:
```
2017-07-23 16:33:46 +02:00
$updateNewChosenInlineResult = ['_' => 'updateNewChosenInlineResult', 'sender_user_id' => int, 'user_location' => location, 'query' => 'string', 'result_id' => 'string', 'inline_message_id' => 'string'];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "updateNewChosenInlineResult", "sender_user_id": int, "user_location": location, "query": "string", "result_id": "string", "inline_message_id": "string"}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
updateNewChosenInlineResult={_='updateNewChosenInlineResult', sender_user_id=int, user_location=location, query='string', result_id='string', inline_message_id='string'}
```