Class: TD::Types::ChatPhoto

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

Overview

Describes a chat or user profile photo.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#added_dateInteger

Point in time (Unix timestamp) when the photo has been added.

Returns:

  • (Integer)

    the current value of added_date



9
10
11
# File 'lib/tdlib/types/chat_photo.rb', line 9

def added_date
  @added_date
end

#animationTD::Types::AnimatedChatPhoto?

Animated variant of the photo in MPEG4 format; may be null.

Returns:



9
10
11
# File 'lib/tdlib/types/chat_photo.rb', line 9

def animation
  @animation
end

#idInteger

Unique photo identifier.

Returns:

  • (Integer)

    the current value of id



9
10
11
# File 'lib/tdlib/types/chat_photo.rb', line 9

def id
  @id
end

#minithumbnailTD::Types::Minithumbnail?

Photo minithumbnail; may be null.

Returns:



9
10
11
# File 'lib/tdlib/types/chat_photo.rb', line 9

def minithumbnail
  @minithumbnail
end

#sizesArray<TD::Types::PhotoSize>

Available variants of the photo in JPEG format, in different size.

Returns:



9
10
11
# File 'lib/tdlib/types/chat_photo.rb', line 9

def sizes
  @sizes
end