Class TdApi.SetProfilePhoto
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.SetProfilePhoto
- Enclosing class:
- TdApi
Changes a profile photo for the current user.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass 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
ConstructorDescriptionDefault 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 dev.voroby.springframework.telegram.client.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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-