class Hamilton::Types::PollMedia

Overview

At most one of the optional fields can be present in any given object.

Included Modules

Defined in:

types/poll_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 animation : Hamilton::Types::Animation | Nil #

Media is an animation, information about the animation.


def animation=(animation : Hamilton::Types::Animation | Nil) #

Media is an animation, information about the animation.


def audio : Hamilton::Types::Audio | Nil #

Media is an audio file, information about the file; currently, can't be received in a poll option.


def audio=(audio : Hamilton::Types::Audio | Nil) #

Media is an audio file, information about the file; currently, can't be received in a poll option.


def document : Hamilton::Types::Document | Nil #

Media is a general file, information about the file; currently, can't be received in a poll option.


def document=(document : Hamilton::Types::Document | Nil) #

Media is a general file, information about the file; currently, can't be received in a poll option.


def location : Hamilton::Types::Location | Nil #

Media is a shared location, information about the location.


def location=(location : Hamilton::Types::Location | Nil) #

Media is a shared location, information about the location.


def name : String #

The bot's name.


def name=(name : String) #

The bot's name.


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 : Array(Hamilton::Types::PhotoSize) | Nil #

Media is a photo, available sizes of the photo.


def photo=(photo : Array(Hamilton::Types::PhotoSize) | Nil) #

Media is a photo, available sizes of the photo.


def sticker : Hamilton::Types::Sticker | Nil #

Media is a sticker, information about the sticker; currently, for poll options only.


def sticker=(sticker : Hamilton::Types::Sticker | Nil) #

Media is a sticker, information about the sticker; currently, for poll options only.


def venue : Hamilton::Types::Venue | Nil #

Media is a venue, information about the venue.


def venue=(venue : Hamilton::Types::Venue | Nil) #

Media is a venue, information about the venue.


def video : Hamilton::Types::Video | Nil #

Media is a video, information about the video.


def video=(video : Hamilton::Types::Video | Nil) #

Media is a video, information about the video.