Class: TD::Types::ChatPhoto
- Defined in:
- lib/tdlib/types/chat_photo.rb
Overview
Describes a chat or user profile photo.
Instance Attribute Summary collapse
-
#added_date ⇒ Integer
Point in time (Unix timestamp) when the photo has been added.
-
#animation ⇒ TD::Types::AnimatedChatPhoto?
A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.
-
#id ⇒ Integer
Unique photo identifier.
-
#minithumbnail ⇒ TD::Types::Minithumbnail?
Photo minithumbnail; may be null.
-
#sizes ⇒ Array<TD::Types::PhotoSize>
Available variants of the photo in JPEG format, in different size.
-
#small_animation ⇒ TD::Types::AnimatedChatPhoto?
A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available.
-
#sticker ⇒ TD::Types::ChatPhotoSticker?
Sticker-based version of the chat photo; may be null.
Method Summary
Methods inherited from Base
Instance Attribute Details
#added_date ⇒ Integer
Point in time (Unix timestamp) when the photo has been added.
13 14 15 |
# File 'lib/tdlib/types/chat_photo.rb', line 13 def added_date @added_date end |
#animation ⇒ TD::Types::AnimatedChatPhoto?
A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.
13 14 15 |
# File 'lib/tdlib/types/chat_photo.rb', line 13 def animation @animation end |
#id ⇒ Integer
Unique photo identifier.
13 14 15 |
# File 'lib/tdlib/types/chat_photo.rb', line 13 def id @id end |
#minithumbnail ⇒ TD::Types::Minithumbnail?
Photo minithumbnail; may be null.
13 14 15 |
# File 'lib/tdlib/types/chat_photo.rb', line 13 def minithumbnail @minithumbnail end |
#sizes ⇒ Array<TD::Types::PhotoSize>
Available variants of the photo in JPEG format, in different size.
13 14 15 |
# File 'lib/tdlib/types/chat_photo.rb', line 13 def sizes @sizes end |
#small_animation ⇒ TD::Types::AnimatedChatPhoto?
A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available.
13 14 15 |
# File 'lib/tdlib/types/chat_photo.rb', line 13 def small_animation @small_animation end |
#sticker ⇒ TD::Types::ChatPhotoSticker?
Sticker-based version of the chat photo; may be null.
13 14 15 |
# File 'lib/tdlib/types/chat_photo.rb', line 13 def sticker @sticker end |