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

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/sticker.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#custom_emoji_idString? (readonly)

Returns the value of attribute custom_emoji_id.

Returns:

  • (String, nil)


20
21
22
# File 'sig/telegram/bot/types/sticker.rbs', line 20

def custom_emoji_id
  @custom_emoji_id
end

#emojiString? (readonly)

Returns the value of attribute emoji.

Returns:

  • (String, nil)


16
17
18
# File 'sig/telegram/bot/types/sticker.rbs', line 16

def emoji
  @emoji
end

#file_idString (readonly)

Returns the value of attribute file_id.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/sticker.rbs', line 8

def file_id
  @file_id
end

#file_sizeInteger? (readonly)

Returns the value of attribute file_size.

Returns:

  • (Integer, nil)


22
23
24
# File 'sig/telegram/bot/types/sticker.rbs', line 22

def file_size
  @file_size
end

#file_unique_idString (readonly)

Returns the value of attribute file_unique_id.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/sticker.rbs', line 9

def file_unique_id
  @file_unique_id
end

#heightInteger (readonly)

Returns the value of attribute height.

Returns:

  • (Integer)


12
13
14
# File 'sig/telegram/bot/types/sticker.rbs', line 12

def height
  @height
end

#is_animatedBoolean (readonly)

Returns the value of attribute is_animated.

Returns:

  • (Boolean)


13
14
15
# File 'sig/telegram/bot/types/sticker.rbs', line 13

def is_animated
  @is_animated
end

#is_videoBoolean (readonly)

Returns the value of attribute is_video.

Returns:

  • (Boolean)


14
15
16
# File 'sig/telegram/bot/types/sticker.rbs', line 14

def is_video
  @is_video
end

#mask_positionMaskPosition? (readonly)

Returns the value of attribute mask_position.

Returns:



19
20
21
# File 'sig/telegram/bot/types/sticker.rbs', line 19

def mask_position
  @mask_position
end

#needs_repaintingtrue? (readonly)

Returns the value of attribute needs_repainting.

Returns:

  • (true, nil)


21
22
23
# File 'sig/telegram/bot/types/sticker.rbs', line 21

def needs_repainting
  @needs_repainting
end

#premium_animationFile? (readonly)

Returns the value of attribute premium_animation.

Returns:



18
19
20
# File 'sig/telegram/bot/types/sticker.rbs', line 18

def premium_animation
  @premium_animation
end

#set_nameString? (readonly)

Returns the value of attribute set_name.

Returns:

  • (String, nil)


17
18
19
# File 'sig/telegram/bot/types/sticker.rbs', line 17

def set_name
  @set_name
end

#thumbnailPhotoSize? (readonly)

Returns the value of attribute thumbnail.

Returns:



15
16
17
# File 'sig/telegram/bot/types/sticker.rbs', line 15

def thumbnail
  @thumbnail
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


10
11
12
# File 'sig/telegram/bot/types/sticker.rbs', line 10

def type
  @type
end

#widthInteger (readonly)

Returns the value of attribute width.

Returns:

  • (Integer)


11
12
13
# File 'sig/telegram/bot/types/sticker.rbs', line 11

def width
  @width
end

Class Method Details

.new(file_id:, file_unique_id:, type:, width:, height:, is_animated:, is_video:, thumbnail:, emoji:, set_name:, premium_animation:, mask_position:, custom_emoji_id:, needs_repainting:, file_size:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(file_id:, file_unique_id:, type:, width:, height:, is_animated:, is_video:, thumbnail:, emoji:, set_name:, premium_animation:, mask_position:, custom_emoji_id:, needs_repainting:, file_size:) ⇒ instance

    Parameters:

    • file_id: (String)
    • file_unique_id: (String)
    • type: (String)
    • width: (Integer)
    • height: (Integer)
    • is_animated: (Boolean)
    • is_video: (Boolean)
    • thumbnail: (PhotoSize)
    • emoji: (String)
    • set_name: (String)
    • premium_animation: (File)
    • mask_position: (MaskPosition)
    • custom_emoji_id: (String)
    • needs_repainting: (true)
    • file_size: (Integer)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/sticker.rbs', line 6

def self.new: (file_id: String, file_unique_id: String, type: String, width: Integer, height: Integer, is_animated: bool, is_video: bool, ?thumbnail: PhotoSize, ?emoji: String, ?set_name: String, ?premium_animation: File, ?mask_position: MaskPosition, ?custom_emoji_id: String, ?needs_repainting: true, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance