Class: Telegram::Bot::Types::SharedUser

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

#first_nameString? (readonly)

Returns the value of attribute first_name.

Returns:

  • (String, nil)


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

def first_name
  @first_name
end

#last_nameString? (readonly)

Returns the value of attribute last_name.

Returns:

  • (String, nil)


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

def last_name
  @last_name
end

#photoArray[PhotoSize]? (readonly)

Returns the value of attribute photo.

Returns:



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

def photo
  @photo
end

#user_idInteger (readonly)

Returns the value of attribute user_id.

Returns:

  • (Integer)


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

def user_id
  @user_id
end

#usernameString? (readonly)

Returns the value of attribute username.

Returns:

  • (String, nil)


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

def username
  @username
end

Class Method Details

.new(user_id:, first_name:, last_name:, username:, photo:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(user_id:, first_name:, last_name:, username:, photo:) ⇒ instance

    Parameters:

    • user_id: (Integer)
    • first_name: (String)
    • last_name: (String)
    • username: (String)
    • photo: (Array[PhotoSize])

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (user_id: Integer, ?first_name: String, ?last_name: String, ?username: String, ?photo: Array[PhotoSize]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance