class
Hamilton::Types::InputPaidMediaPhoto
- Hamilton::Types::InputPaidMediaPhoto
- Reference
- Object
Overview
The paid media to send is a photo.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_paid_media.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#media : Hamilton::Types::InputFile | String
File to send.
-
#media=(media : Hamilton::Types::InputFile | String)
File to send.
-
#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.
-
#type : String
Type of the media, must be "photo".
-
#type=(type : String)
Type of the media, must be "photo".
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
def media : Hamilton::Types::InputFile | String
#
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass attach://<file_attach_name> to upload a new one using multipart/form-data under <file_attach_name> name.
def media=(media : Hamilton::Types::InputFile | String)
#
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass attach://<file_attach_name> to upload a new one using multipart/form-data under <file_attach_name> name.