Information about a boost (one or more)

Constructors

Properties

_peers: PeersIndex

Accessors

  • get count(): number
  • Number of boosts this boost is actually representing

    Returns number

  • get date(): Date
  • Date when this boost was applied

    Returns Date

  • get expireDate(): Date
  • Date when this boost will automatically expire.

    Note: User can still manually cancel the boost before that date

    Returns Date

  • get giveawayMessageId(): null | number
  • ID of the message containing the giveaway where this user has won

    Returns null | number

  • get id(): string
  • Unique ID of this boost

    Returns string

  • get origin(): BoostOrigin
  • Whether this boost was applied because the channel directly gifted a subscription to the user

    Returns BoostOrigin

  • get stars(): null | Long
  • Amount of Telegram Stars that were awarded along with this boost

    Returns null | Long

  • get usedGiftSlug(): null | string
  • The created Telegram Premium gift code, only set if origin is not user, AND it is either a gift code for the currently logged in user, or if it was already claimed

    Returns null | string

  • get user(): null | User
  • User who is boosting the channel.

    Only available for some origins

    Returns null | User