class

Tourmaline::PaidMediaPreview

Inherits JSON::Serializable < Reference < Object

The paid media isn't available before the payment.

Constructors

new(type : String, width : Int32 | Int64 | Nil = nil, height : Int32 | Int64 | Nil = nil, duration : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

duration

Optional. Duration of the media in seconds as defined by the sender

Source
duration=(duration : Int32 | Int64 | Nil)

Optional. Duration of the media in seconds as defined by the sender

Source
height

Optional. Media height as defined by the sender

Source
height=(height : Int32 | Int64 | Nil)

Optional. Media height as defined by the sender

Source
type

Type of the paid media, always "preview"

Source
type=(type : String)

Type of the paid media, always "preview"

Source
width

Optional. Media width as defined by the sender

Source
width=(width : Int32 | Int64 | Nil)

Optional. Media width as defined by the sender

Source