Class: Telegram::Bot::Types::GiveawayWinners
- Defined in:
- sig/telegram/bot/types/giveaway_winners.rbs
Instance Attribute Summary collapse
-
#additional_chat_count ⇒ Integer?
readonly
Returns the value of attribute additional_chat_count.
-
#chat ⇒ Chat
readonly
Returns the value of attribute chat.
-
#giveaway_message_id ⇒ Integer
readonly
Returns the value of attribute giveaway_message_id.
-
#only_new_members ⇒ true?
readonly
Returns the value of attribute only_new_members.
-
#premium_subscription_month_count ⇒ Integer?
readonly
Returns the value of attribute premium_subscription_month_count.
-
#prize_description ⇒ String?
readonly
Returns the value of attribute prize_description.
-
#prize_star_count ⇒ Integer?
readonly
Returns the value of attribute prize_star_count.
-
#unclaimed_prize_count ⇒ Integer?
readonly
Returns the value of attribute unclaimed_prize_count.
-
#was_refunded ⇒ true?
readonly
Returns the value of attribute was_refunded.
-
#winner_count ⇒ Integer
readonly
Returns the value of attribute winner_count.
-
#winners ⇒ Array[User]
readonly
Returns the value of attribute winners.
-
#winners_selection_date ⇒ Integer
readonly
Returns the value of attribute winners_selection_date.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#additional_chat_count ⇒ Integer? (readonly)
Returns the value of attribute additional_chat_count.
13 14 15 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 13 def additional_chat_count @additional_chat_count end |
#chat ⇒ Chat (readonly)
Returns the value of attribute chat.
8 9 10 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 8 def chat @chat end |
#giveaway_message_id ⇒ Integer (readonly)
Returns the value of attribute giveaway_message_id.
9 10 11 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 9 def @giveaway_message_id end |
#only_new_members ⇒ true? (readonly)
Returns the value of attribute only_new_members.
17 18 19 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 17 def only_new_members @only_new_members end |
#premium_subscription_month_count ⇒ Integer? (readonly)
Returns the value of attribute premium_subscription_month_count.
15 16 17 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 15 def premium_subscription_month_count @premium_subscription_month_count end |
#prize_description ⇒ String? (readonly)
Returns the value of attribute prize_description.
19 20 21 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 19 def prize_description @prize_description end |
#prize_star_count ⇒ Integer? (readonly)
Returns the value of attribute prize_star_count.
14 15 16 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 14 def prize_star_count @prize_star_count end |
#unclaimed_prize_count ⇒ Integer? (readonly)
Returns the value of attribute unclaimed_prize_count.
16 17 18 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 16 def unclaimed_prize_count @unclaimed_prize_count end |
#was_refunded ⇒ true? (readonly)
Returns the value of attribute was_refunded.
18 19 20 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 18 def was_refunded @was_refunded end |
#winner_count ⇒ Integer (readonly)
Returns the value of attribute winner_count.
11 12 13 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 11 def winner_count @winner_count end |
#winners ⇒ Array[User] (readonly)
Returns the value of attribute winners.
12 13 14 |
# File 'sig/telegram/bot/types/giveaway_winners.rbs', line 12 def winners @winners end |
#winners_selection_date ⇒ Integer (readonly)
Returns the value of attribute winners_selection_date.
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
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
|