class Tourmaline::PaidMediaPhoto

Overview

The paid media is a photo.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(type : String, photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize) #

[View source]

Instance Method Detail

def photo : Array(Tourmaline::PhotoSize) #

The photo


[View source]
def photo=(photo : Array(Tourmaline::PhotoSize)) #

The photo


[View source]
def type : String #

Type of the paid media, always "photo"


[View source]
def type=(type : String) #

Type of the paid media, always "photo"


[View source]