class Tourmaline::Sticker
- Tourmaline::Sticker
- Reference
- Object
Overview
This object represents a sticker.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(file_id : String, file_unique_id : String, type : String, width : Int32 | Int64, height : Int32 | Int64, is_animated : Bool, is_video : Bool, thumbnail : Tourmaline::PhotoSize | Nil = nil, emoji : String | Nil = nil, set_name : String | Nil = nil, premium_animation : Tourmaline::File | Nil = nil, mask_position : Tourmaline::MaskPosition | Nil = nil, custom_emoji_id : String | Nil = nil, needs_repainting : Bool | Nil = nil, file_size : Int32 | Int64 | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#custom_emoji_id : String | Nil
Optional.
-
#custom_emoji_id=(custom_emoji_id : String | Nil)
Optional.
-
#emoji : String | Nil
Optional.
-
#emoji=(emoji : String | Nil)
Optional.
-
#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 | Int64 | Nil
Optional.
-
#file_size=(file_size : Int32 | Int64 | Nil)
Optional.
-
#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 | Int64
Sticker height
-
#height=(height : Int32 | Int64)
Sticker height
-
#is_animated=(is_animated : Bool)
True, if the sticker is animated
-
#is_animated? : Bool
True, if the sticker is animated
-
#is_video=(is_video : Bool)
True, if the sticker is a video sticker
-
#is_video? : Bool
True, if the sticker is a video sticker
-
#mask_position : Tourmaline::MaskPosition | Nil
Optional.
-
#mask_position=(mask_position : Tourmaline::MaskPosition | Nil)
Optional.
-
#needs_repainting=(needs_repainting : Bool | Nil)
Optional.
-
#needs_repainting? : Bool | Nil
Optional.
-
#premium_animation : Tourmaline::File | Nil
Optional.
-
#premium_animation=(premium_animation : Tourmaline::File | Nil)
Optional.
-
#set_name : String | Nil
Optional.
-
#set_name=(set_name : String | Nil)
Optional.
-
#thumbnail : Tourmaline::PhotoSize | Nil
Optional.
-
#thumbnail=(thumbnail : Tourmaline::PhotoSize | Nil)
Optional.
-
#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 | Int64
Sticker width
-
#width=(width : Int32 | Int64)
Sticker width
Constructor Detail
Instance Method Detail
Optional. For custom emoji stickers, unique identifier of the custom emoji
Optional. 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.
Optional. For mask stickers, the position where the mask should be placed
Optional. For mask stickers, the position where the mask should be placed
Optional. 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
Optional. 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
Optional. Name of the sticker set to which the sticker belongs
Optional. Sticker thumbnail in the .WEBP or .JPG format
Optional. 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.