Class: Telegram::Bot::Types::BusinessConnection

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

#dateInteger (readonly)

Returns the value of attribute date.

Returns:

  • (Integer)


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

def date
  @date
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

#is_enabledBoolean (readonly)

Returns the value of attribute is_enabled.

Returns:

  • (Boolean)


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

def is_enabled
  @is_enabled
end

#rightsBusinessBotRights? (readonly)

Returns the value of attribute rights.

Returns:



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

def rights
  @rights
end

#userUser (readonly)

Returns the value of attribute user.

Returns:



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

def user
  @user
end

#user_chat_idInteger (readonly)

Returns the value of attribute user_chat_id.

Returns:

  • (Integer)


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

def user_chat_id
  @user_chat_id
end

Class Method Details

.new(id:, user:, user_chat_id:, date:, rights:, is_enabled:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, user:, user_chat_id:, date:, rights:, is_enabled:) ⇒ instance

    Parameters:

    • id: (String)
    • user: (User)
    • user_chat_id: (Integer)
    • date: (Integer)
    • rights: (BusinessBotRights)
    • is_enabled: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (id: String, user: User, user_chat_id: Integer, date: Integer, ?rights: BusinessBotRights, is_enabled: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance