public static class TdApi.SetProfilePhoto extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isPublic
Pass true to set a public photo, which will be visible even the main photo is hidden by privacy settings.
|
TdApi.InputChatPhoto |
photo
Profile photo to set.
|
| Constructor and Description |
|---|
SetProfilePhoto()
Default constructor for a function, which changes a profile photo for the current user.
|
SetProfilePhoto(TdApi.InputChatPhoto photo,
boolean isPublic)
Creates a function, which changes a profile photo for the current user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.InputChatPhoto photo
public boolean isPublic
public static final int CONSTRUCTOR
public SetProfilePhoto()
Returns Ok
public SetProfilePhoto(TdApi.InputChatPhoto photo, boolean isPublic)
Returns Ok
photo - Profile photo to set.isPublic - Pass true to set a public photo, which will be visible even the main photo is hidden by privacy settings.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object