2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: profilePhoto
|
|
|
|
description: Describes user profile photo
|
|
|
|
---
|
|
|
|
## Constructor: profilePhoto
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Describes user profile photo
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|id|[long](../types/long.md) | Yes|Photo identifier, 0 for empty photo. Can be used to find photo in list of userProfilePhotos|
|
|
|
|
|small|[file](../types/file.md) | Yes|Small (160x160) user profile photo|
|
|
|
|
|big|[file](../types/file.md) | Yes|Big (640x640) user profile photo|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [ProfilePhoto](../types/ProfilePhoto.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
$profilePhoto = ['_' => 'profilePhoto', 'id' => long, 'small' => file, 'big' => file];
|
2017-03-11 19:54:51 +01:00
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
{"_": "profilePhoto", "id": long, "small": file, "big": file}
|
2017-07-23 16:11:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
profilePhoto={_='profilePhoto', id=long, small=file, big=file}
|
2017-03-11 19:54:51 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|