Class BusinessConnection

Hierarchy (view full)

  • Base
    • BusinessConnection

Constructors

Properties

createdUnixTime: number

Date the connection was established in Unix time

enabled: boolean

True, if the connection is active

id: string

Unique identifier of the business connection

replyed: boolean

True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours

user: User

Business account user that created the business connection

userChatId: string

Identifier of a private chat with the user who created the business connection

Accessors

  • get createdTimestamp(): number
  • Return the timestamp connection was established, in milliseconds

    Returns number

Methods

  • Protected

    Patches the current instance with new data

    Parameters

    • data: Record<string, any>

      The data to patch the instance with

    Returns Record<string, any>

    The patched data

  • Protected

    Updates the current instance with new data and returns a clone of the updated instance

    Parameters

    • data: Record<string, any>

      The data to update the instance with

    Returns Base

    A clone of the updated instance