Class ChatBoostSource

Hierarchy (view full)

Constructors

Properties

giveawayId?: string

Identifier of a message in the chat with the giveaway; the message could have been deleted already

starCount?: number

The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only

unclaimed: boolean

True, if the giveaway was completed, but there was no user to win the prize

user?: User

User that boosted the chat

Accessors

Methods

  • Parameters

    • data: ChatBoostSource

      Data about the boost source

    Returns ChatBoostSource

  • 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