Class: Telegram::Bot::Types::Giveaway

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

#chatsArray[Chat] (readonly)

Returns the value of attribute chats.

Returns:



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

def chats
  @chats
end

#country_codesArray[String]? (readonly)

Returns the value of attribute country_codes.

Returns:

  • (Array[String], nil)


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

def country_codes
  @country_codes
end

#has_public_winnerstrue? (readonly)

Returns the value of attribute has_public_winners.

Returns:

  • (true, nil)


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

def has_public_winners
  @has_public_winners
end

#only_new_memberstrue? (readonly)

Returns the value of attribute only_new_members.

Returns:

  • (true, nil)


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

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)


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

def premium_subscription_month_count
  @premium_subscription_month_count
end

#prize_descriptionString? (readonly)

Returns the value of attribute prize_description.

Returns:

  • (String, nil)


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

def prize_description
  @prize_description
end

#prize_star_countInteger? (readonly)

Returns the value of attribute prize_star_count.

Returns:

  • (Integer, nil)


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

def prize_star_count
  @prize_star_count
end

#winner_countInteger (readonly)

Returns the value of attribute winner_count.

Returns:

  • (Integer)


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

def winner_count
  @winner_count
end

#winners_selection_dateInteger (readonly)

Returns the value of attribute winners_selection_date.

Returns:

  • (Integer)


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

def winners_selection_date
  @winners_selection_date
end

Class Method Details

.new(chats:, winners_selection_date:, winner_count:, only_new_members:, has_public_winners:, prize_description:, country_codes:, prize_star_count:, premium_subscription_month_count:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(chats:, winners_selection_date:, winner_count:, only_new_members:, has_public_winners:, prize_description:, country_codes:, prize_star_count:, premium_subscription_month_count:) ⇒ instance

    Parameters:

    • chats: (Array[Chat])
    • winners_selection_date: (Integer)
    • winner_count: (Integer)
    • only_new_members: (true)
    • has_public_winners: (true)
    • prize_description: (String)
    • country_codes: (Array[String])
    • prize_star_count: (Integer)
    • premium_subscription_month_count: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (chats: Array[Chat], winners_selection_date: Integer, winner_count: Integer, ?only_new_members: true, ?has_public_winners: true, ?prize_description: String, ?country_codes: Array[String], ?prize_star_count: Integer, ?premium_subscription_month_count: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance