Raw.Boost

Raw.Boost

Info about one or more boosts applied by a specific user.

boost#2a1c8c71 flags:# gift:flags.1?true giveaway:flags.2?true unclaimed:flags.3?true id:string user_id:flags.0?long giveaway_msg_id:flags.2?int date:int expires:int used_gift_slug:flags.4?string multiplier:flags.5?int = Boost;
export namespace Raw {
  export class Boost {
    constructor(params: {
      gift?: boolean;
      giveaway?: boolean;
      unclaimed?: boolean;
      id: string;
      userId?: bigint;
      giveawayMsgId?: number;
      date: number;
      expires: number;
      usedGiftSlug?: string;
      multiplier?: number;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x2a1c8c71

Property

  • gift : boolean or undefined

    Whether this boost was applied because the channel/supergroup directly gifted a subscription to the user.

  • giveaway : boolean or undefined

    Whether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup.

  • unclaimed : boolean or undefined

    If set, the user hasn’t yet invoked payments.applygiftcode to claim a subscription gifted directly or in a giveaway by the channel.

  • id : string

    Unique id for this set of boosts.

  • userId : bigint or undefined

    Id of the user that applied the boost.

  • giveawayMsgId : number or undefined

    The message id of the giveaway

  • date : number

    When was the boost applied

  • expires : number

    When does the boost expire

  • usedGiftSlug : string or undefined

    The created telegram premium gift code, only set if either gift or giveaway are set and it is either a gift code for the currently logged in user or if it was already claimed.

  • multiplier : number or undefined

    If set, this boost counts as multiplier boosts, otherwise it counts as a single boost.