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:



12
13
14
# File 'lib/tdlib/types/profile_photo.rb', line 12

def big
  @big
end

#has_animationBoolean

True, if the photo has animated variant.

Returns:

  • (Boolean)

    the current value of has_animation



12
13
14
# File 'lib/tdlib/types/profile_photo.rb', line 12

def has_animation
  @has_animation
end

#idInteger

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

Returns:

  • (Integer)

    the current value of id



12
13
14
# File 'lib/tdlib/types/profile_photo.rb', line 12

def id
  @id
end

#minithumbnailTD::Types::Minithumbnail?

User profile photo minithumbnail; may be null.

Returns:



12
13
14
# File 'lib/tdlib/types/profile_photo.rb', line 12

def minithumbnail
  @minithumbnail
end

#smallTD::Types::File

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

Returns:



12
13
14
# File 'lib/tdlib/types/profile_photo.rb', line 12

def small
  @small
end