Class: Telegram::Bot::Types::ChatBoostSourceGiveaway
- Defined in:
- sig/telegram/bot/types/chat_boost_source_giveaway.rbs
Instance Attribute Summary collapse
-
#giveaway_message_id ⇒ Integer
readonly
Returns the value of attribute giveaway_message_id.
-
#is_unclaimed ⇒ true?
readonly
Returns the value of attribute is_unclaimed.
-
#prize_star_count ⇒ Integer?
readonly
Returns the value of attribute prize_star_count.
-
#source ⇒ String
readonly
Returns the value of attribute source.
-
#user ⇒ User?
readonly
Returns the value of attribute user.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#giveaway_message_id ⇒ Integer (readonly)
Returns the value of attribute giveaway_message_id.
9 10 11 |
# File 'sig/telegram/bot/types/chat_boost_source_giveaway.rbs', line 9 def @giveaway_message_id end |
#is_unclaimed ⇒ true? (readonly)
Returns the value of attribute is_unclaimed.
12 13 14 |
# File 'sig/telegram/bot/types/chat_boost_source_giveaway.rbs', line 12 def is_unclaimed @is_unclaimed end |
#prize_star_count ⇒ Integer? (readonly)
Returns the value of attribute prize_star_count.
11 12 13 |
# File 'sig/telegram/bot/types/chat_boost_source_giveaway.rbs', line 11 def prize_star_count @prize_star_count end |
#source ⇒ String (readonly)
Returns the value of attribute source.
8 9 10 |
# File 'sig/telegram/bot/types/chat_boost_source_giveaway.rbs', line 8 def source @source end |
#user ⇒ User? (readonly)
Returns the value of attribute user.
10 11 12 |
# File 'sig/telegram/bot/types/chat_boost_source_giveaway.rbs', line 10 def user @user end |
Class Method Details
.new(source:, giveaway_message_id:, user:, prize_star_count:, is_unclaimed:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/chat_boost_source_giveaway.rbs', line 6
def self.new: (?source: String, giveaway_message_id: Integer, ?user: User, ?prize_star_count: Integer, ?is_unclaimed: true) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|