Class: TD::Types::PaidMedia::Preview

Inherits:
TD::Types::PaidMedia show all
Defined in:
lib/tdlib/types/paid_media/preview.rb

Overview

The media is hidden until the invoice is paid.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#durationInteger

Media duration, in seconds; 0 if unknown.

Returns:

  • (Integer)

    the current value of duration



8
9
10
# File 'lib/tdlib/types/paid_media/preview.rb', line 8

def duration
  @duration
end

#heightInteger

Media height; 0 if unknown.

Returns:

  • (Integer)

    the current value of height



8
9
10
# File 'lib/tdlib/types/paid_media/preview.rb', line 8

def height
  @height
end

#minithumbnailTD::Types::Minithumbnail?

Media minithumbnail; may be null.

Returns:



8
9
10
# File 'lib/tdlib/types/paid_media/preview.rb', line 8

def minithumbnail
  @minithumbnail
end

#widthInteger

Media width; 0 if unknown.

Returns:

  • (Integer)

    the current value of width



8
9
10
# File 'lib/tdlib/types/paid_media/preview.rb', line 8

def width
  @width
end