Class: Telegram::Bot::Types::ChatMemberMember

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

#statusString (readonly)

Returns the value of attribute status.

Returns:

  • (String)


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

def status
  @status
end

#tagString? (readonly)

Returns the value of attribute tag.

Returns:

  • (String, nil)


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

def tag
  @tag
end

#until_dateInteger? (readonly)

Returns the value of attribute until_date.

Returns:

  • (Integer, nil)


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

def until_date
  @until_date
end

#userUser (readonly)

Returns the value of attribute user.

Returns:



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

def user
  @user
end

Class Method Details

.new(status:, tag:, user:, until_date:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(status:, tag:, user:, until_date:) ⇒ instance

    Parameters:

    • status: (String)
    • tag: (String)
    • user: (User)
    • until_date: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?status: String, ?tag: String, user: User, ?until_date: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance