ProfilePhoto

public struct ProfilePhoto : Codable, Equatable, FunctionResult

Describes a user profile photo

  • id

    Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of userProfilePhotos

    Declaration

    Swift

    public let id: TDInt64
  • A small (160x160) user profile photo. The file can be downloaded only before the photo is changed

    Declaration

    Swift

    public let small: File
  • big

    A big (640x640) user profile photo. The file can be downloaded only before the photo is changed

    Declaration

    Swift

    public let big: File
  • Describes a user profile photo

    Declaration

    Swift

    public init(id: TDInt64, small: File, big: File)

    Parameters

    id

    Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of userProfilePhotos

    small

    A small (160x160) user profile photo. The file can be downloaded only before the photo is changed

    big

    A big (640x640) user profile photo. The file can be downloaded only before the photo is changed