Class ChatShared

Hierarchy (view full)

Constructors

Properties

id: number

Identifier of the shared chat. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.

photo?: Photo[]

Available sizes of the chat photo, if the photo was requested by the bot

requestId: number

Identifier of the request

title?: string

Title of the chat, if the title was requested by the bot.

username?: string

Username of the chat, if the username was requested by the bot and available.

Accessors

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