Class: Telegram::Bot::Types::GiveawayWinners

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

#additional_chat_countInteger? (readonly)

Returns the value of attribute additional_chat_count.

Returns:

  • (Integer, nil)


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

def additional_chat_count
  @additional_chat_count
end

#chatChat (readonly)

Returns the value of attribute chat.

Returns:



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

def chat
  @chat
end

#giveaway_message_idInteger (readonly)

Returns the value of attribute giveaway_message_id.

Returns:

  • (Integer)


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

def giveaway_message_id
  @giveaway_message_id
end

#only_new_memberstrue? (readonly)

Returns the value of attribute only_new_members.

Returns:

  • (true, nil)


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

def only_new_members
  @only_new_members
end

#premium_subscription_month_countInteger? (readonly)

Returns the value of attribute premium_subscription_month_count.

Returns:

  • (Integer, nil)


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

def premium_subscription_month_count
  @premium_subscription_month_count
end

#prize_descriptionString? (readonly)

Returns the value of attribute prize_description.

Returns:

  • (String, nil)


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

def prize_description
  @prize_description
end

#prize_star_countInteger? (readonly)

Returns the value of attribute prize_star_count.

Returns:

  • (Integer, nil)


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

def prize_star_count
  @prize_star_count
end

#unclaimed_prize_countInteger? (readonly)

Returns the value of attribute unclaimed_prize_count.

Returns:

  • (Integer, nil)


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

def unclaimed_prize_count
  @unclaimed_prize_count
end

#was_refundedtrue? (readonly)

Returns the value of attribute was_refunded.

Returns:

  • (true, nil)


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

def was_refunded
  @was_refunded
end

#winner_countInteger (readonly)

Returns the value of attribute winner_count.

Returns:

  • (Integer)


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

def winner_count
  @winner_count
end

#winnersArray[User] (readonly)

Returns the value of attribute winners.

Returns:



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

def winners
  @winners
end

#winners_selection_dateInteger (readonly)

Returns the value of attribute winners_selection_date.

Returns:

  • (Integer)


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

def winners_selection_date
  @winners_selection_date
end

Class Method Details

.new(chat:, giveaway_message_id:, winners_selection_date:, winner_count:, winners:, additional_chat_count:, prize_star_count:, premium_subscription_month_count:, unclaimed_prize_count:, only_new_members:, was_refunded:, prize_description:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(chat:, giveaway_message_id:, winners_selection_date:, winner_count:, winners:, additional_chat_count:, prize_star_count:, premium_subscription_month_count:, unclaimed_prize_count:, only_new_members:, was_refunded:, prize_description:) ⇒ instance

    Parameters:

    • chat: (Chat)
    • giveaway_message_id: (Integer)
    • winners_selection_date: (Integer)
    • winner_count: (Integer)
    • winners: (Array[User])
    • additional_chat_count: (Integer)
    • prize_star_count: (Integer)
    • premium_subscription_month_count: (Integer)
    • unclaimed_prize_count: (Integer)
    • only_new_members: (true)
    • was_refunded: (true)
    • prize_description: (String)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (chat: Chat, giveaway_message_id: Integer, winners_selection_date: Integer, winner_count: Integer, winners: Array[User], ?additional_chat_count: Integer, ?prize_star_count: Integer, ?premium_subscription_month_count: Integer, ?unclaimed_prize_count: Integer, ?only_new_members: true, ?was_refunded: true, ?prize_description: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance