class
Hamilton::Types::Sticker
- Hamilton::Types::Sticker
- Reference
- Object
Overview
This object represents a sticker.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/sticker.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#custom_emoji_id : String | Nil
For custom emoji stickers, unique identifier of the custom emoji.
-
#custom_emoji_id=(custom_emoji_id : String | Nil)
For custom emoji stickers, unique identifier of the custom emoji.
-
#emoji : String | Nil
Emoji associated with the sticker.
-
#emoji=(emoji : String | Nil)
Emoji associated with the sticker.
-
#file_id : String
Identifier for this file, which can be used to download or reuse the file.
-
#file_id=(file_id : String)
Identifier for this file, which can be used to download or reuse the file.
-
#file_size : Int32 | Nil
File size in bytes.
-
#file_size=(file_size : Int32 | Nil)
File size in bytes.
-
#file_unique_id : String
Unique identifier for this file, which is supposed to be the same over time and for different bots.
-
#file_unique_id=(file_unique_id : String)
Unique identifier for this file, which is supposed to be the same over time and for different bots.
-
#height : Int32
Sticker height.
-
#height=(height : Int32)
Sticker height.
-
#is_animated : Bool
True, if the sticker is animated.
-
#is_animated=(is_animated : Bool)
True, if the sticker is animated.
-
#is_video : Bool
True, if the sticker is a video sticker.
-
#is_video=(is_video : Bool)
True, if the sticker is a video sticker.
-
#mask_position : Hamilton::Types::MaskPosition | Nil
For mask stickers, the position where the mask should be placed.
-
#mask_position=(mask_position : Hamilton::Types::MaskPosition | Nil)
For mask stickers, the position where the mask should be placed.
-
#needs_repainting : Bool | Nil
True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places.
-
#needs_repainting=(needs_repainting : Bool | Nil)
True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places.
-
#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.
-
#premium_animation : Hamilton::Types::File | Nil
For premium regular stickers, premium animation for the sticker.
-
#premium_animation=(premium_animation : Hamilton::Types::File | Nil)
For premium regular stickers, premium animation for the sticker.
-
#set_name : String | Nil
Name of the sticker set to which the sticker belongs.
-
#set_name=(set_name : String | Nil)
Name of the sticker set to which the sticker belongs.
-
#thumbnail : Hamilton::Types::PhotoSize | Nil
Sticker thumbnail in the .WEBP or .JPG format.
-
#thumbnail=(thumbnail : Hamilton::Types::PhotoSize | Nil)
Sticker thumbnail in the .WEBP or .JPG format.
-
#type : String
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”.
-
#type=(type : String)
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”.
-
#width : Int32
Sticker width.
-
#width=(width : Int32)
Sticker width.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
For custom emoji stickers, unique identifier of the custom emoji.
For custom emoji stickers, unique identifier of the custom emoji.
Identifier for this file, which can be used to download or reuse the file.
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
For mask stickers, the position where the mask should be placed.
For mask stickers, the position where the mask should be placed.
True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places.
True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places.
Sticker thumbnail in the .WEBP or .JPG format.
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields #is_animated and #is_video.
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields #is_animated and #is_video.