Package org.drinkless.tdlib
Class TdApi.SetProfilePhoto
- Enclosing class:
- TdApi
Changes a profile photo for the current user.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to set the public photo, which will be visible even the main photo is hidden by privacy settings.Profile photo to set. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
photo
Profile photo to set. -
isPublic
public boolean isPublicPass true to set the public photo, which will be visible even the main photo is hidden by privacy settings. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetProfilePhoto
public SetProfilePhoto()Default constructor for a function, which changes a profile photo for the current user.Returns
Ok
-
SetProfilePhoto
Creates a function, which changes a profile photo for the current user.Returns
Ok
- Parameters:
photo
- Profile photo to set.isPublic
- Pass true to set the public photo, which will be visible even the main photo is hidden by privacy settings.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-