class Sticker
This object represents a sticker. Extends from TFile
Public Instance Methods
animated?()
click to toggle source
True, if the sticker is animated
# File lib/objects/sticker.rb, line 27 def animated? @sticker.is_animated end
emoji()
click to toggle source
Optional. Emoji associated with the sticker
# File lib/objects/sticker.rb, line 40 def emoji @sticker.emoji end
height()
click to toggle source
Sticker
height
# File lib/objects/sticker.rb, line 22 def height @sticker.height end
mask_position()
click to toggle source
# File lib/objects/sticker.rb, line 49 def mask_position msk_pos = @sticker.mask_position return MaskPosition.new(msk_pos) if msk_pos false end
set_name()
click to toggle source
Optional. Name of the sticker set to which the sticker belongs.
# File lib/objects/sticker.rb, line 45 def set_name @sticker.set_name end
thumb()
click to toggle source
Optional. Sticker
thumbnail in the .WEBP or .JPG format
# File lib/objects/sticker.rb, line 32 def thumb tmb = @sticker.thumb return PhotoSize.new(tmb) if tmb false end
width()
click to toggle source
Sticker
width
# File lib/objects/sticker.rb, line 17 def width @file.width end