Class PollAnswer

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

id: string

Unique poll identifier

ids: number[]

0-based identifiers of chosen answer options. May be empty if the vote was retracted

user: User

The user that changed the answer to the poll, if the voter isn't anonymous

voterChat: Chat

The chat that changed the answer to the poll, if the voter is anonymous

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