Class: Telegram::Bot::Types::StickerSet

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

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


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

def name
  @name
end

#sticker_typeString (readonly)

Returns the value of attribute sticker_type.

Returns:

  • (String)


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

def sticker_type
  @sticker_type
end

#stickersArray[Sticker] (readonly)

Returns the value of attribute stickers.

Returns:



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

def stickers
  @stickers
end

#thumbnailPhotoSize? (readonly)

Returns the value of attribute thumbnail.

Returns:



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

def thumbnail
  @thumbnail
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


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

def title
  @title
end

Class Method Details

.new(name:, title:, sticker_type:, stickers:, thumbnail:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(name:, title:, sticker_type:, stickers:, thumbnail:) ⇒ instance

    Parameters:

    • name: (String)
    • title: (String)
    • sticker_type: (String)
    • stickers: (Array[Sticker])
    • thumbnail: (PhotoSize)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (name: String, title: String, sticker_type: String, stickers: Array[Sticker], ?thumbnail: PhotoSize) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance