Class: Telegram::Bot::Types::GiftInfo

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

#can_be_upgradedtrue? (readonly)

Returns the value of attribute can_be_upgraded.

Returns:

  • (true, nil)


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

def can_be_upgraded
  @can_be_upgraded
end

#convert_star_countInteger? (readonly)

Returns the value of attribute convert_star_count.

Returns:

  • (Integer, nil)


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

def convert_star_count
  @convert_star_count
end

#entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute entities.

Returns:



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

def entities
  @entities
end

#giftGift (readonly)

Returns the value of attribute gift.

Returns:



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

def gift
  @gift
end

#is_privatetrue? (readonly)

Returns the value of attribute is_private.

Returns:

  • (true, nil)


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

def is_private
  @is_private
end

#is_upgrade_separatetrue? (readonly)

Returns the value of attribute is_upgrade_separate.

Returns:

  • (true, nil)


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

def is_upgrade_separate
  @is_upgrade_separate
end

#owned_gift_idString? (readonly)

Returns the value of attribute owned_gift_id.

Returns:

  • (String, nil)


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

def owned_gift_id
  @owned_gift_id
end

#prepaid_upgrade_star_countInteger? (readonly)

Returns the value of attribute prepaid_upgrade_star_count.

Returns:

  • (Integer, nil)


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

def prepaid_upgrade_star_count
  @prepaid_upgrade_star_count
end

#textString? (readonly)

Returns the value of attribute text.

Returns:

  • (String, nil)


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

def text
  @text
end

#unique_gift_numberInteger? (readonly)

Returns the value of attribute unique_gift_number.

Returns:

  • (Integer, nil)


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

def unique_gift_number
  @unique_gift_number
end

Class Method Details

.new(gift:, owned_gift_id:, convert_star_count:, prepaid_upgrade_star_count:, is_upgrade_separate:, can_be_upgraded:, text:, entities:, is_private:, unique_gift_number:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(gift:, owned_gift_id:, convert_star_count:, prepaid_upgrade_star_count:, is_upgrade_separate:, can_be_upgraded:, text:, entities:, is_private:, unique_gift_number:) ⇒ instance

    Parameters:

    • gift: (Gift)
    • owned_gift_id: (String)
    • convert_star_count: (Integer)
    • prepaid_upgrade_star_count: (Integer)
    • is_upgrade_separate: (true)
    • can_be_upgraded: (true)
    • text: (String)
    • entities: (Array[MessageEntity])
    • is_private: (true)
    • unique_gift_number: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (gift: Gift, ?owned_gift_id: String, ?convert_star_count: Integer, ?prepaid_upgrade_star_count: Integer, ?is_upgrade_separate: true, ?can_be_upgraded: true, ?text: String, ?entities: Array[MessageEntity], ?is_private: true, ?unique_gift_number: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance