Class: Telegram::Bot::Types::WriteAccessAllowed

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

#from_attachment_menuBoolean? (readonly)

Returns the value of attribute from_attachment_menu.

Returns:

  • (Boolean, nil)


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

def from_attachment_menu
  @from_attachment_menu
end

#from_requestBoolean? (readonly)

Returns the value of attribute from_request.

Returns:

  • (Boolean, nil)


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

def from_request
  @from_request
end

#web_app_nameString? (readonly)

Returns the value of attribute web_app_name.

Returns:

  • (String, nil)


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

def web_app_name
  @web_app_name
end

Class Method Details

.new(from_request:, web_app_name:, from_attachment_menu:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(from_request:, web_app_name:, from_attachment_menu:) ⇒ instance

    Parameters:

    • from_request: (Boolean)
    • web_app_name: (String)
    • from_attachment_menu: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?from_request: bool, ?web_app_name: String, ?from_attachment_menu: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance