Class: Telegram::Bot::Types::GiveawayCompleted

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

#giveaway_messageMessage? (readonly)

Returns the value of attribute giveaway_message.

Returns:



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

def giveaway_message
  @giveaway_message
end

#is_star_giveawaytrue? (readonly)

Returns the value of attribute is_star_giveaway.

Returns:

  • (true, nil)


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

def is_star_giveaway
  @is_star_giveaway
end

#unclaimed_prize_countInteger? (readonly)

Returns the value of attribute unclaimed_prize_count.

Returns:

  • (Integer, nil)


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

def unclaimed_prize_count
  @unclaimed_prize_count
end

#winner_countInteger (readonly)

Returns the value of attribute winner_count.

Returns:

  • (Integer)


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

def winner_count
  @winner_count
end

Class Method Details

.new(winner_count:, unclaimed_prize_count:, giveaway_message:, is_star_giveaway:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(winner_count:, unclaimed_prize_count:, giveaway_message:, is_star_giveaway:) ⇒ instance

    Parameters:

    • winner_count: (Integer)
    • unclaimed_prize_count: (Integer)
    • giveaway_message: (Message)
    • is_star_giveaway: (true)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (winner_count: Integer, ?unclaimed_prize_count: Integer, ?giveaway_message: Message, ?is_star_giveaway: true) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance