Package org.drinkless.tdlib
Class TdApi.SetProfilePhoto
- Enclosing class:
- TdApi
Changes a profile photo for the current user.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanPass true to set a 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 TypeMethodDescriptionintReturns 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 a 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 a 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Ok>- Returns:
- this.CONSTRUCTOR
-