class
Hamilton::Types::InputSticker
- Hamilton::Types::InputSticker
- Reference
- Object
Overview
This object describes a sticker to be added to a sticker set.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_sticker.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#emoji_list : Array(String)
List of 1-20 emoji associated with the sticker.
-
#emoji_list=(emoji_list : Array(String))
List of 1-20 emoji associated with the sticker.
-
#format : String
Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video.
-
#format=(format : String)
Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video.
-
#keywords : Array(String) | Nil
List of 0-20 search keywords for the sticker with total length of up to 64 characters.
-
#keywords=(keywords : Array(String) | Nil)
List of 0-20 search keywords for the sticker with total length of up to 64 characters.
-
#mask_position : Hamilton::Types::MaskPosition | Nil
Position where the mask should be placed on faces.
-
#mask_position=(mask_position : Hamilton::Types::MaskPosition | Nil)
Position where the mask should be placed on faces.
-
#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.
-
#sticker : Hamilton::Types::InputFile | String
The added sticker.
-
#sticker=(sticker : Hamilton::Types::InputFile | String)
The added sticker.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video.
Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video.
List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.
List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.
Position where the mask should be placed on faces. For “mask” stickers only.
Position where the mask should be placed on faces. For “mask” stickers only.
The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or pass attach://<file_attach_name> to upload a new file using multipart/form-data under <file_attach_name> name. Animated and video stickers can't be uploaded via HTTP URL.
The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or pass attach://<file_attach_name> to upload a new file using multipart/form-data under <file_attach_name> name. Animated and video stickers can't be uploaded via HTTP URL.