Class TdApi.SetProfilePhoto

Enclosing class:
TdApi

public static class TdApi.SetProfilePhoto extends TdApi.Function<TdApi.Ok>
Changes a profile photo for the current user.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • photo

      public TdApi.InputChatPhoto photo
      Profile photo to set.
    • isPublic

      public boolean isPublic
      Pass true to set the public photo, which will be visible even the main photo is hidden by privacy settings.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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

      public SetProfilePhoto(TdApi.InputChatPhoto photo, boolean isPublic)
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR