Module tdlight.api

Class TdApi.SetProfilePhoto

Enclosing class:
TdApi

public static final class TdApi.SetProfilePhoto extends TdApi.Function<TdApi.Ok>
Changes a profile photo for the current user. Returns Ok
  • Field Details

    • photo

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

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

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetProfilePhoto

      public SetProfilePhoto()
      Changes a profile photo for the current user. Returns Ok
    • SetProfilePhoto

      public SetProfilePhoto(TdApi.InputChatPhoto photo, boolean isPublic)
      Changes a profile photo for the current user. Returns Ok
      Parameters:
      photo - InputChatPhoto Profile photo to set.
      isPublic - boolean Pass true to set a public photo, which will be visible even the main photo is hidden by privacy settings.
    • SetProfilePhoto

      public SetProfilePhoto(DataInput input) throws IOException
      Changes a profile photo for the current user. Returns Ok
      Throws:
      IOException
  • Method Details