Class: Telegram::Bot::Types::ForumTopic

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

#icon_colorInteger (readonly)

Returns the value of attribute icon_color.

Returns:

  • (Integer)


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

def icon_color
  @icon_color
end

#icon_custom_emoji_idString? (readonly)

Returns the value of attribute icon_custom_emoji_id.

Returns:

  • (String, nil)


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

def icon_custom_emoji_id
  @icon_custom_emoji_id
end

#is_name_implicittrue? (readonly)

Returns the value of attribute is_name_implicit.

Returns:

  • (true, nil)


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

def is_name_implicit
  @is_name_implicit
end

#message_thread_idInteger (readonly)

Returns the value of attribute message_thread_id.

Returns:

  • (Integer)


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

def message_thread_id
  @message_thread_id
end

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


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

def name
  @name
end

Class Method Details

.new(message_thread_id:, name:, icon_color:, icon_custom_emoji_id:, is_name_implicit:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(message_thread_id:, name:, icon_color:, icon_custom_emoji_id:, is_name_implicit:) ⇒ instance

    Parameters:

    • message_thread_id: (Integer)
    • name: (String)
    • icon_color: (Integer)
    • icon_custom_emoji_id: (String)
    • is_name_implicit: (true)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (message_thread_id: Integer, name: String, icon_color: Integer, ?icon_custom_emoji_id: String, ?is_name_implicit: true) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance