2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: updateNewInlineQuery
|
|
|
|
description: Bots only. New incoming inline query
|
|
|
|
---
|
|
|
|
## Constructor: updateNewInlineQuery
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bots only. New incoming inline query
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|id|[long](../types/long.md) | Yes|Unique query identifier|
|
|
|
|
|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|
|
|
|
|
|offset|[string](../types/string.md) | Yes|Offset of the first entry to return|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Update](../types/Update.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$updateNewInlineQuery = ['_' => 'updateNewInlineQuery', 'id' => long, 'sender_user_id' => int, 'user_location' => location, 'query' => string, 'offset' => string, ];
|
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
|
|
|
{"_":"updateNewInlineQuery","id":"long","sender_user_id":"int","user_location":"location","query":"string","offset":"string"}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
updateNewInlineQuery={_='updateNewInlineQuery', id=long, sender_user_id=int, user_location=location, query=string, offset=string, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|