Class: Telegram::Bot::Types::ChatInviteLink

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

#creates_join_requestBoolean (readonly)

Returns the value of attribute creates_join_request.

Returns:

  • (Boolean)


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

def creates_join_request
  @creates_join_request
end

#creatorUser (readonly)

Returns the value of attribute creator.

Returns:



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

def creator
  @creator
end

#expire_dateInteger? (readonly)

Returns the value of attribute expire_date.

Returns:

  • (Integer, nil)


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

def expire_date
  @expire_date
end

Returns the value of attribute invite_link.

Returns:

  • (String)


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

def invite_link
  @invite_link
end

#is_primaryBoolean (readonly)

Returns the value of attribute is_primary.

Returns:

  • (Boolean)


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

def is_primary
  @is_primary
end

#is_revokedBoolean (readonly)

Returns the value of attribute is_revoked.

Returns:

  • (Boolean)


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

def is_revoked
  @is_revoked
end

#member_limitInteger? (readonly)

Returns the value of attribute member_limit.

Returns:

  • (Integer, nil)


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

def member_limit
  @member_limit
end

#nameString? (readonly)

Returns the value of attribute name.

Returns:

  • (String, nil)


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

def name
  @name
end

#pending_join_request_countInteger? (readonly)

Returns the value of attribute pending_join_request_count.

Returns:

  • (Integer, nil)


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

def pending_join_request_count
  @pending_join_request_count
end

#subscription_periodInteger? (readonly)

Returns the value of attribute subscription_period.

Returns:

  • (Integer, nil)


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

def subscription_period
  @subscription_period
end

#subscription_priceInteger? (readonly)

Returns the value of attribute subscription_price.

Returns:

  • (Integer, nil)


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

def subscription_price
  @subscription_price
end

Class Method Details

.new(invite_link:, creator:, creates_join_request:, is_primary:, is_revoked:, name:, expire_date:, member_limit:, pending_join_request_count:, subscription_period:, subscription_price:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(invite_link:, creator:, creates_join_request:, is_primary:, is_revoked:, name:, expire_date:, member_limit:, pending_join_request_count:, subscription_period:, subscription_price:) ⇒ instance

    Parameters:

    • invite_link: (String)
    • creator: (User)
    • creates_join_request: (Boolean)
    • is_primary: (Boolean)
    • is_revoked: (Boolean)
    • name: (String)
    • expire_date: (Integer)
    • member_limit: (Integer)
    • pending_join_request_count: (Integer)
    • subscription_period: (Integer)
    • subscription_price: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (invite_link: String, creator: User, creates_join_request: bool, is_primary: bool, is_revoked: bool, ?name: String, ?expire_date: Integer, ?member_limit: Integer, ?pending_join_request_count: Integer, ?subscription_period: Integer, ?subscription_price: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance