Class: Telegram::Bot::Types::OwnedGiftRegular

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


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

def can_be_upgraded
  @can_be_upgraded
end

#convert_star_countInteger? (readonly)

Returns the value of attribute convert_star_count.

Returns:

  • (Integer, nil)


19
20
21
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 19

def convert_star_count
  @convert_star_count
end

#entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute entities.

Returns:



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

def entities
  @entities
end

#giftGift (readonly)

Returns the value of attribute gift.

Returns:



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

def gift
  @gift
end

#is_privatetrue? (readonly)

Returns the value of attribute is_private.

Returns:

  • (true, nil)


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

def is_private
  @is_private
end

#is_savedtrue? (readonly)

Returns the value of attribute is_saved.

Returns:

  • (true, nil)


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

def is_saved
  @is_saved
end

#is_upgrade_separatetrue? (readonly)

Returns the value of attribute is_upgrade_separate.

Returns:

  • (true, nil)


21
22
23
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 21

def is_upgrade_separate
  @is_upgrade_separate
end

#owned_gift_idString? (readonly)

Returns the value of attribute owned_gift_id.

Returns:

  • (String, nil)


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

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)


20
21
22
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 20

def prepaid_upgrade_star_count
  @prepaid_upgrade_star_count
end

#send_dateInteger (readonly)

Returns the value of attribute send_date.

Returns:

  • (Integer)


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

def send_date
  @send_date
end

#sender_userUser? (readonly)

Returns the value of attribute sender_user.

Returns:



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

def sender_user
  @sender_user
end

#textString? (readonly)

Returns the value of attribute text.

Returns:

  • (String, nil)


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

def text
  @text
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

#unique_gift_numberInteger? (readonly)

Returns the value of attribute unique_gift_number.

Returns:

  • (Integer, nil)


22
23
24
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 22

def unique_gift_number
  @unique_gift_number
end

#was_refundedtrue? (readonly)

Returns the value of attribute was_refunded.

Returns:

  • (true, nil)


18
19
20
# File 'sig/telegram/bot/types/owned_gift_regular.rbs', line 18

def was_refunded
  @was_refunded
end

Class Method Details

.new(type:, gift:, owned_gift_id:, sender_user:, send_date:, text:, entities:, is_private:, is_saved:, can_be_upgraded:, was_refunded:, convert_star_count:, prepaid_upgrade_star_count:, is_upgrade_separate:, unique_gift_number:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, gift:, owned_gift_id:, sender_user:, send_date:, text:, entities:, is_private:, is_saved:, can_be_upgraded:, was_refunded:, convert_star_count:, prepaid_upgrade_star_count:, is_upgrade_separate:, unique_gift_number:) ⇒ instance

    Parameters:

    • type: (String)
    • gift: (Gift)
    • owned_gift_id: (String)
    • sender_user: (User)
    • send_date: (Integer)
    • text: (String)
    • entities: (Array[MessageEntity])
    • is_private: (true)
    • is_saved: (true)
    • can_be_upgraded: (true)
    • was_refunded: (true)
    • convert_star_count: (Integer)
    • prepaid_upgrade_star_count: (Integer)
    • is_upgrade_separate: (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/owned_gift_regular.rbs', line 6

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