class
Hamilton::Types::PollMedia
- Hamilton::Types::PollMedia
- Reference
- Object
Overview
At most one of the optional fields can be present in any given object.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/poll_media.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#animation : Hamilton::Types::Animation | Nil
Media is an animation, information about the animation.
-
#animation=(animation : Hamilton::Types::Animation | Nil)
Media is an animation, information about the animation.
-
#audio : Hamilton::Types::Audio | Nil
Media is an audio file, information about the file; currently, can't be received in a poll option.
-
#audio=(audio : Hamilton::Types::Audio | Nil)
Media is an audio file, information about the file; currently, can't be received in a poll option.
-
#document : Hamilton::Types::Document | Nil
Media is a general file, information about the file; currently, can't be received in a poll option.
-
#document=(document : Hamilton::Types::Document | Nil)
Media is a general file, information about the file; currently, can't be received in a poll option.
-
#location : Hamilton::Types::Location | Nil
Media is a shared location, information about the location.
-
#location=(location : Hamilton::Types::Location | Nil)
Media is a shared location, information about the location.
-
#name : String
The bot's name.
-
#name=(name : String)
The bot's name.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#photo : Array(Hamilton::Types::PhotoSize) | Nil
Media is a photo, available sizes of the photo.
-
#photo=(photo : Array(Hamilton::Types::PhotoSize) | Nil)
Media is a photo, available sizes of the photo.
-
#sticker : Hamilton::Types::Sticker | Nil
Media is a sticker, information about the sticker; currently, for poll options only.
-
#sticker=(sticker : Hamilton::Types::Sticker | Nil)
Media is a sticker, information about the sticker; currently, for poll options only.
-
#venue : Hamilton::Types::Venue | Nil
Media is a venue, information about the venue.
-
#venue=(venue : Hamilton::Types::Venue | Nil)
Media is a venue, information about the venue.
-
#video : Hamilton::Types::Video | Nil
Media is a video, information about the video.
-
#video=(video : Hamilton::Types::Video | Nil)
Media is a video, information about the video.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Media is an animation, information about the animation.
Media is an animation, information about the animation.
Media is an audio file, information about the file; currently, can't be received in a poll option.
Media is an audio file, information about the file; currently, can't be received in a poll option.
Media is a general file, information about the file; currently, can't be received in a poll option.
Media is a general file, information about the file; currently, can't be received in a poll option.
Media is a shared location, information about the location.
Media is a shared location, information about the location.
Media is a photo, available sizes of the photo.
Media is a photo, available sizes of the photo.
Media is a sticker, information about the sticker; currently, for poll options only.
Media is a sticker, information about the sticker; currently, for poll options only.