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

47 lines
974 B
Markdown

---
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:
```
$profilePhoto = ['_' => 'profilePhoto', 'id' => long, 'small' => file, 'big' => file];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "profilePhoto", "id": long, "small": file, "big": file}
```
Or, if you're into Lua:
```
profilePhoto={_='profilePhoto', id=long, small=file, big=file}
```