Class: Telegram::Bot::Types::Gift

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

#backgroundGiftBackground? (readonly)

Returns the value of attribute background.

Returns:



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

def background
  @background
end

#has_colorstrue? (readonly)

Returns the value of attribute has_colors.

Returns:

  • (true, nil)


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

def has_colors
  @has_colors
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

#is_premiumtrue? (readonly)

Returns the value of attribute is_premium.

Returns:

  • (true, nil)


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

def is_premium
  @is_premium
end

#personal_remaining_countInteger? (readonly)

Returns the value of attribute personal_remaining_count.

Returns:

  • (Integer, nil)


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

def personal_remaining_count
  @personal_remaining_count
end

#personal_total_countInteger? (readonly)

Returns the value of attribute personal_total_count.

Returns:

  • (Integer, nil)


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

def personal_total_count
  @personal_total_count
end

#publisher_chatChat? (readonly)

Returns the value of attribute publisher_chat.

Returns:



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

def publisher_chat
  @publisher_chat
end

#remaining_countInteger? (readonly)

Returns the value of attribute remaining_count.

Returns:

  • (Integer, nil)


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

def remaining_count
  @remaining_count
end

#star_countInteger (readonly)

Returns the value of attribute star_count.

Returns:

  • (Integer)


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

def star_count
  @star_count
end

#stickerSticker (readonly)

Returns the value of attribute sticker.

Returns:



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

def sticker
  @sticker
end

#total_countInteger? (readonly)

Returns the value of attribute total_count.

Returns:

  • (Integer, nil)


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

def total_count
  @total_count
end

#unique_gift_variant_countInteger? (readonly)

Returns the value of attribute unique_gift_variant_count.

Returns:

  • (Integer, nil)


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

def unique_gift_variant_count
  @unique_gift_variant_count
end

#upgrade_star_countInteger? (readonly)

Returns the value of attribute upgrade_star_count.

Returns:

  • (Integer, nil)


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

def upgrade_star_count
  @upgrade_star_count
end

Class Method Details

.new(id:, sticker:, star_count:, upgrade_star_count:, is_premium:, has_colors:, total_count:, remaining_count:, personal_total_count:, personal_remaining_count:, background:, unique_gift_variant_count:, publisher_chat:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, sticker:, star_count:, upgrade_star_count:, is_premium:, has_colors:, total_count:, remaining_count:, personal_total_count:, personal_remaining_count:, background:, unique_gift_variant_count:, publisher_chat:) ⇒ instance

    Parameters:

    • id: (String)
    • sticker: (Sticker)
    • star_count: (Integer)
    • upgrade_star_count: (Integer)
    • is_premium: (true)
    • has_colors: (true)
    • total_count: (Integer)
    • remaining_count: (Integer)
    • personal_total_count: (Integer)
    • personal_remaining_count: (Integer)
    • background: (GiftBackground)
    • unique_gift_variant_count: (Integer)
    • publisher_chat: (Chat)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (id: String, sticker: Sticker, star_count: Integer, ?upgrade_star_count: Integer, ?is_premium: true, ?has_colors: true, ?total_count: Integer, ?remaining_count: Integer, ?personal_total_count: Integer, ?personal_remaining_count: Integer, ?background: GiftBackground, ?unique_gift_variant_count: Integer, ?publisher_chat: Chat) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance