Class: Telegram::Bot::Types::Chat

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


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

def first_name
  @first_name
end

#idInteger (readonly)

Returns the value of attribute id.

Returns:

  • (Integer)


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

def id
  @id
end

#is_direct_messagestrue? (readonly)

Returns the value of attribute is_direct_messages.

Returns:

  • (true, nil)


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

def is_direct_messages
  @is_direct_messages
end

#is_forumtrue? (readonly)

Returns the value of attribute is_forum.

Returns:

  • (true, nil)


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

def is_forum
  @is_forum
end

#last_nameString? (readonly)

Returns the value of attribute last_name.

Returns:

  • (String, nil)


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

def last_name
  @last_name
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


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

def title
  @title
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

#usernameString? (readonly)

Returns the value of attribute username.

Returns:

  • (String, nil)


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

def username
  @username
end

Class Method Details

.new(id:, type:, title:, username:, first_name:, last_name:, is_forum:, is_direct_messages:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, type:, title:, username:, first_name:, last_name:, is_forum:, is_direct_messages:) ⇒ instance

    Parameters:

    • id: (Integer)
    • type: (String)
    • title: (String)
    • username: (String)
    • first_name: (String)
    • last_name: (String)
    • is_forum: (true)
    • is_direct_messages: (true)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (id: Integer, type: String, ?title: String, ?username: String, ?first_name: String, ?last_name: String, ?is_forum: true, ?is_direct_messages: true) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance