Class: Telegram::Bot::Types::ChatBoostSourceGiveaway

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/chat_boost_source_giveaway.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_message_idInteger (readonly)

Returns the value of attribute giveaway_message_id.

Returns:

  • (Integer)


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

def giveaway_message_id
  @giveaway_message_id
end

#is_unclaimedtrue? (readonly)

Returns the value of attribute is_unclaimed.

Returns:

  • (true, nil)


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

def is_unclaimed
  @is_unclaimed
end

#prize_star_countInteger? (readonly)

Returns the value of attribute prize_star_count.

Returns:

  • (Integer, nil)


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

def prize_star_count
  @prize_star_count
end

#sourceString (readonly)

Returns the value of attribute source.

Returns:

  • (String)


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

def source
  @source
end

#userUser? (readonly)

Returns the value of attribute user.

Returns:



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

Overloads:

  • .new(source:, giveaway_message_id:, user:, prize_star_count:, is_unclaimed:) ⇒ instance

    Parameters:

    • source: (String)
    • giveaway_message_id: (Integer)
    • user: (User)
    • prize_star_count: (Integer)
    • is_unclaimed: (true)

    Returns:

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

    Parameters:

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

    Returns:

    • (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