Class: Telegram::Bot::Types::ChatShared

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

#chat_idInteger (readonly)

Returns the value of attribute chat_id.

Returns:

  • (Integer)


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

def chat_id
  @chat_id
end

#photoArray[PhotoSize]? (readonly)

Returns the value of attribute photo.

Returns:



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

def photo
  @photo
end

#request_idInteger (readonly)

Returns the value of attribute request_id.

Returns:

  • (Integer)


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

def request_id
  @request_id
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


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

def title
  @title
end

#usernameString? (readonly)

Returns the value of attribute username.

Returns:

  • (String, nil)


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

def username
  @username
end

Class Method Details

.new(request_id:, chat_id:, title:, username:, photo:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(request_id:, chat_id:, title:, username:, photo:) ⇒ instance

    Parameters:

    • request_id: (Integer)
    • chat_id: (Integer)
    • title: (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/chat_shared.rbs', line 6

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