2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: inlineQueryResultContact
|
|
|
|
description: Represents user contact
|
|
|
|
---
|
|
|
|
## Constructor: inlineQueryResultContact
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Represents user contact
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|id|[string](../types/string.md) | Yes|Unique identifier of this result|
|
|
|
|
|contact|[contact](../types/contact.md) | Yes|User contact|
|
|
|
|
|thumb\_url|[string](../types/string.md) | Yes|Url of the result thumb, if exists|
|
|
|
|
|thumb\_width|[int](../types/int.md) | Yes|Thumb width, if known|
|
|
|
|
|thumb\_height|[int](../types/int.md) | Yes|Thumb height, if known|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [InlineQueryResult](../types/InlineQueryResult.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$inlineQueryResultContact = ['_' => 'inlineQueryResultContact', 'id' => string, 'contact' => contact, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, ];
|
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
|
|
|
{"_":"inlineQueryResultContact","id":"string","contact":"contact","thumb_url":"string","thumb_width":"int","thumb_height":"int"}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
inlineQueryResultContact={_='inlineQueryResultContact', id=string, contact=contact, thumb_url=string, thumb_width=int, thumb_height=int, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|