class Tourmaline::Sticker
inherits Reference
#
This object represents a sticker.
Included modules
JSON::Serializable
Constructors#
.new(file_id, file_unique_id, type, width, height, is_animated, is_video, thumbnail : Tourmaline::PhotoSize? = nil, emoji : String? = nil, set_name : String? = nil, premium_animation : Tourmaline::File? = nil, mask_position : Tourmaline::MaskPosition? = nil, custom_emoji_id : String? = nil, needs_repainting : Bool? = nil, file_size : Int32 | Int64 | Nil = nil)
#
(file_id, file_unique_id, type, width, height, is_animated, is_video, thumbnail : Tourmaline::PhotoSize? = nil, emoji : String? = nil, set_name : String? = nil, premium_animation : Tourmaline::File? = nil, mask_position : Tourmaline::MaskPosition? = nil, custom_emoji_id : String? = nil, needs_repainting : Bool? = nil, file_size : Int32 | Int64 | Nil = nil)
Methods#
#custom_emoji_id : String?
#
: String?
Optional. For custom emoji stickers, unique identifier of the custom emoji
#custom_emoji_id=(custom_emoji_id : String?)
#
(custom_emoji_id : String?)
Optional. For custom emoji stickers, unique identifier of the custom emoji
#file_id : String
#
: String
Identifier for this file, which can be used to download or reuse the file
#file_id=(file_id : String)
#
(file_id : String)
Identifier for this file, which can be used to download or reuse the file
#file_unique_id : String
#
: String
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.
#file_unique_id=(file_unique_id : String)
#
(file_unique_id : String)
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.
#mask_position : Tourmaline::MaskPosition?
#
: Tourmaline::MaskPosition?
Optional. For mask stickers, the position where the mask should be placed
#mask_position=(mask_position : Tourmaline::MaskPosition?)
#
(mask_position : Tourmaline::MaskPosition?)
Optional. For mask stickers, the position where the mask should be placed
#needs_repainting=(needs_repainting : Bool?)
#
(needs_repainting : Bool?)
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
#needs_repainting? : Bool?
#
: Bool?
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
#premium_animation : Tourmaline::File?
#
: Tourmaline::File?
Optional. For premium regular stickers, premium animation for the sticker
#premium_animation=(premium_animation : Tourmaline::File?)
#
(premium_animation : Tourmaline::File?)
Optional. For premium regular stickers, premium animation for the sticker
#set_name=(set_name : String?)
#
(set_name : String?)
Optional. Name of the sticker set to which the sticker belongs
#thumbnail : Tourmaline::PhotoSize?
#
: Tourmaline::PhotoSize?
Optional. Sticker thumbnail in the .WEBP or .JPG format
#thumbnail=(thumbnail : Tourmaline::PhotoSize?)
#
(thumbnail : Tourmaline::PhotoSize?)
Optional. Sticker thumbnail in the .WEBP or .JPG format
#type : String
#
: String
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=(type : String)
#
(type : String)
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.