Layer 220
UserProfilePhoto
User profile photo.
constructor
userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| HasVideo | flags.0?true | Whether an animated profile picture is available for this user |
| Personal | flags.2?true | Whether this profile photo is only visible to us (i. e. it was set using photos. upload Contact Profile Photo ). |
| PhotoId | long | Identifier of the respective photo |
| StrippedThumb | flags.1?bytes | Stripped thumbnail |
| DcId | int | DC ID where the photo is stored |
Returns
UserProfilePhotoGogram Example
// Creating UserProfilePhoto constructor obj := &tg.UserProfilePhoto{ PhotoId: int64(0), DcId: 0, // Optional fields: // HasVideo: true, // Personal: true, // StrippedThumb: []byte{}, }