Class: Telegram::Bot::Types::Sticker

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/sticker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Sticker

Returns a new instance of Sticker.



12
13
14
# File 'lib/telegram/bot/types/sticker.rb', line 12

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#emojiObject

Returns the value of attribute emoji.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def emoji
  @emoji
end

#file_idObject

Returns the value of attribute file_id.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def file_id
  @file_id
end

#file_sizeObject

Returns the value of attribute file_size.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def file_size
  @file_size
end

#heightObject

Returns the value of attribute height.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def height
  @height
end

#mask_positionObject

Returns the value of attribute mask_position.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def mask_position
  @mask_position
end

#set_nameObject

Returns the value of attribute set_name.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def set_name
  @set_name
end

#thumbObject

Returns the value of attribute thumb.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def thumb
  @thumb
end

#widthObject

Returns the value of attribute width.



3
4
5
# File 'lib/telegram/bot/types/sticker.rb', line 3

def width
  @width
end