Sha256: acecf44d7fc8f1d30c4a93ad2f4f1263af8cdeece72c55a1e01921b295cdf0d0

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

module TD::Types
  # Describes a photo.
  #
  # @attr has_stickers [Boolean] True, if stickers were added to the photo.
  # @attr minithumbnail [TD::Types::Minithumbnail, nil] Photo minithumbnail; may be null.
  # @attr sizes [Array<TD::Types::PhotoSize>] Available variants of the photo, in different sizes.
  class Photo < Base
    attribute :has_stickers, TD::Types::Bool
    attribute :minithumbnail, TD::Types::Minithumbnail.optional.default(nil)
    attribute :sizes, TD::Types::Array.of(TD::Types::PhotoSize)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-ruby-2.2.0 lib/tdlib/types/photo.rb
tdlib-ruby-2.1.0 lib/tdlib/types/photo.rb