Class: Telegram::Bot::Types::InputSticker

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/input_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

#emoji_listArray[String] (readonly)

Returns the value of attribute emoji_list.

Returns:

  • (Array[String])


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

def emoji_list
  @emoji_list
end

#formatString (readonly)

Returns the value of attribute format.

Returns:

  • (String)


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

def format
  @format
end

#keywordsArray[String]? (readonly)

Returns the value of attribute keywords.

Returns:

  • (Array[String], nil)


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

def keywords
  @keywords
end

#mask_positionMaskPosition? (readonly)

Returns the value of attribute mask_position.

Returns:



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

def mask_position
  @mask_position
end

#stickerString (readonly)

Returns the value of attribute sticker.

Returns:

  • (String)


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

def sticker
  @sticker
end

Class Method Details

.new(sticker:, format:, emoji_list:, mask_position:, keywords:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(sticker:, format:, emoji_list:, mask_position:, keywords:) ⇒ instance

    Parameters:

    • sticker: (String)
    • format: (String)
    • emoji_list: (Array[String])
    • mask_position: (MaskPosition)
    • keywords: (Array[String])

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (sticker: String, format: String, emoji_list: Array[String], ?mask_position: MaskPosition, ?keywords: Array[String]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance