class Hamilton::Types::PaidMediaPreview

Overview

The paid media isn't available before the payment..

Included Modules

Defined in:

types/paid_media.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def duration : Int32 | Nil #

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


def duration=(duration : Int32 | Nil) #

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


def height : Int32 | Nil #

Media height as defined by the sender.


def height=(height : Int32 | Nil) #

Media height as defined by the sender.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def type : String #

Type of the paid media, always “preview”.


def type=(type : String) #

Type of the paid media, always “preview”.


def width : Int32 | Nil #

Media width as defined by the sender.


def width=(width : Int32 | Nil) #

Media width as defined by the sender.