class
Hamilton::Types::InputMediaSticker
- Hamilton::Types::InputMediaSticker
- Reference
- Object
Overview
Represents a sticker file to be sent.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_media.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#emoji : String | Nil
Emoji associated with the sticker; only for just uploaded stickers.
-
#emoji=(emoji : String | Nil)
Emoji associated with the sticker; only for just uploaded stickers.
-
#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 "sticker".
-
#type=(type : String)
Type of the media, must be "sticker".
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Emoji associated with the sticker; only for just uploaded stickers.
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 .WEBP sticker from the Internet, or pass “attach://<file_attach_name>” to upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data under <file_attach_name> name.
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 .WEBP sticker from the Internet, or pass “attach://<file_attach_name>” to upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data under <file_attach_name> name.