Class: Telegram::Bot::Types::ChatJoinRequest

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

#bioString? (readonly)

Returns the value of attribute bio.

Returns:

  • (String, nil)


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

def bio
  @bio
end

#chatChat (readonly)

Returns the value of attribute chat.

Returns:



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

def chat
  @chat
end

#dateInteger (readonly)

Returns the value of attribute date.

Returns:

  • (Integer)


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

def date
  @date
end

#fromUser (readonly)

Returns the value of attribute from.

Returns:



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

def from
  @from
end

Returns the value of attribute invite_link.

Returns:



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

def invite_link
  @invite_link
end

#user_chat_idInteger (readonly)

Returns the value of attribute user_chat_id.

Returns:

  • (Integer)


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

def user_chat_id
  @user_chat_id
end

Class Method Details

.new(chat:, from:, user_chat_id:, date:, bio:, invite_link:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(chat:, from:, user_chat_id:, date:, bio:, invite_link:) ⇒ instance

    Parameters:

    • chat: (Chat)
    • from: (User)
    • user_chat_id: (Integer)
    • date: (Integer)
    • bio: (String)
    • invite_link: (ChatInviteLink)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (chat: Chat, from: User, user_chat_id: Integer, date: Integer, ?bio: String, ?invite_link: ChatInviteLink) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance