Class: Telegram::Bot::Types::BusinessIntro

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

#messageString? (readonly)

Returns the value of attribute message.

Returns:

  • (String, nil)


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

def message
  @message
end

#stickerSticker? (readonly)

Returns the value of attribute sticker.

Returns:



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

def sticker
  @sticker
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


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

def title
  @title
end

Class Method Details

.new(title:, message:, sticker:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(title:, message:, sticker:) ⇒ instance

    Parameters:

    • title: (String)
    • message: (String)
    • sticker: (Sticker)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?title: String, ?message: String, ?sticker: Sticker) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance