class Tourmaline::InputStoryContentPhoto

Overview

Describes a photo to post as a story.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, photo : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def photo : 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>. More information on Sending Files: https://core.telegram.org/bots/api#sending-files


[View source]
def photo=(photo : 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>. More information on Sending Files: https://core.telegram.org/bots/api#sending-files


[View source]
def type : String #

Type of the content, must be photo


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

Type of the content, must be photo


[View source]