Class: TD::Types::ProfilePhoto

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/profile_photo.rb

Overview

Describes a user profile photo.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#bigTD::Types::File

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

Returns:



10
11
12
# File 'lib/tdlib/types/profile_photo.rb', line 10

def big
  @big
end

#idInteger

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

Returns:

  • (Integer)

    the current value of id



10
11
12
# File 'lib/tdlib/types/profile_photo.rb', line 10

def id
  @id
end

#smallTD::Types::File

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

Returns:



10
11
12
# File 'lib/tdlib/types/profile_photo.rb', line 10

def small
  @small
end