class Hamilton::Types::InputStoryContentPhoto

Overview

Describes a photo to post as a story.

Included Modules

Defined in:

types/input_story_content.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 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 photo : Hamilton::Types::InputFile | String #

The photo to post as a story. The photo must be of the size 1080x1920 and must not exceed 10 MB. The photo can't be reused and can only be uploaded as a new file, so you can pass attach://<file_attach_name> if the photo was uploaded using multipart/form-data under <file_attach_name>.


def photo=(photo : Hamilton::Types::InputFile | String) #

The photo to post as a story. The photo must be of the size 1080x1920 and must not exceed 10 MB. The photo can't be reused and can only be uploaded as a new file, so you can pass attach://<file_attach_name> if the photo was uploaded using multipart/form-data under <file_attach_name>.


def type : String #

Type of the content, must be "photo".


def type=(type : String) #

Type of the content, must be "photo".