Class: Telegrammer::DataTypes::Sticker

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/sticker.rb

Overview

Telegram Sticker data type.

See more at core.telegram.org/bots/api#sticker

Instance Attribute Summary collapse

Instance Attribute Details

#file_idString

Unique identifier for this file

Returns:

  • (String)

    the current value of file_id



12
13
14
# File 'lib/telegrammer/data_types/sticker.rb', line 12

def file_id
  @file_id
end

#heightInteger

Sticker height

Returns:

  • (Integer)

    the current value of height



12
13
14
# File 'lib/telegrammer/data_types/sticker.rb', line 12

def height
  @height
end

#thumbTelegrammer::DataTypes::PhotoSize

Sticker thumbnail in .webp or .jpg format

Returns:



12
13
14
# File 'lib/telegrammer/data_types/sticker.rb', line 12

def thumb
  @thumb
end

#widthInteger

Sticker width

Returns:

  • (Integer)

    the current value of width



12
13
14
# File 'lib/telegrammer/data_types/sticker.rb', line 12

def width
  @width
end