telegramsjs
    Preparing search index...

    Class ChatBoostSource

    Hierarchy (View Summary)

    Index

    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

    • Protected

      Creates a clone of the current instance

      Returns Base

      A clone of the current instance

    • 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

    • Flatten an object. Any properties that are collections will get converted to an array of keys.

      Parameters

      • OptionalpropsRecursive: boolean

        Optional. If true, calls toJSON method on nested objects.

      • ...props: Record<string, string | boolean>[]

        Optional. Specific properties to include/exclude, or rename.

      Returns Record<string, any>

      Flattened object.

    • Returns the id instance Chat, User, ChatMember and other

      Returns string | null