mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 03:56:57 +01:00
974 B
974 B
title | description |
---|---|
profilePhoto | Describes user profile photo |
Constructor: profilePhoto
Describes user profile photo
Attributes:
Name | Type | Required | Description |
---|---|---|---|
id | long | Yes | Photo identifier, 0 for empty photo. Can be used to find photo in list of userProfilePhotos |
small | file | Yes | Small (160x160) user profile photo |
big | file | Yes | Big (640x640) user profile photo |
Type: ProfilePhoto
Example:
$profilePhoto = ['_' => 'profilePhoto', 'id' => long, 'small' => file, 'big' => file];
PWRTelegram json-encoded version:
{"_": "profilePhoto", "id": long, "small": file, "big": file}
Or, if you're into Lua:
profilePhoto={_='profilePhoto', id=long, small=file, big=file}