Class: Telegram::Bot::Types::UniqueGift

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

#backdropUniqueGiftBackdrop (readonly)

Returns the value of attribute backdrop.

Returns:



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

def backdrop
  @backdrop
end

#base_nameString (readonly)

Returns the value of attribute base_name.

Returns:

  • (String)


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

def base_name
  @base_name
end

#colorsUniqueGiftColors? (readonly)

Returns the value of attribute colors.

Returns:



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

def colors
  @colors
end

#gift_idString (readonly)

Returns the value of attribute gift_id.

Returns:

  • (String)


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

def gift_id
  @gift_id
end

#is_burnedtrue? (readonly)

Returns the value of attribute is_burned.

Returns:

  • (true, nil)


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

def is_burned
  @is_burned
end

#is_from_blockchaintrue? (readonly)

Returns the value of attribute is_from_blockchain.

Returns:

  • (true, nil)


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

def is_from_blockchain
  @is_from_blockchain
end

#is_premiumtrue? (readonly)

Returns the value of attribute is_premium.

Returns:

  • (true, nil)


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

def is_premium
  @is_premium
end

#modelUniqueGiftModel (readonly)

Returns the value of attribute model.

Returns:



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

def model
  @model
end

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


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

def name
  @name
end

#numberInteger (readonly)

Returns the value of attribute number.

Returns:

  • (Integer)


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

def number
  @number
end

#publisher_chatChat? (readonly)

Returns the value of attribute publisher_chat.

Returns:



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

def publisher_chat
  @publisher_chat
end

#symbolUniqueGiftSymbol (readonly)

Returns the value of attribute symbol.

Returns:



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

def symbol
  @symbol
end

Class Method Details

.new(gift_id:, base_name:, name:, number:, model:, symbol:, backdrop:, is_premium:, is_burned:, is_from_blockchain:, colors:, publisher_chat:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(gift_id:, base_name:, name:, number:, model:, symbol:, backdrop:, is_premium:, is_burned:, is_from_blockchain:, colors:, publisher_chat:) ⇒ instance

    Parameters:

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (gift_id: String, base_name: String, name: String, number: Integer, model: UniqueGiftModel, symbol: UniqueGiftSymbol, backdrop: UniqueGiftBackdrop, ?is_premium: true, ?is_burned: true, ?is_from_blockchain: true, ?colors: UniqueGiftColors, ?publisher_chat: Chat) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance