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 undefinedWhether this boost was applied because the channel/supergroup directly gifted a subscription to the user.
giveaway
: boolean or undefinedWhether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup.
unclaimed
: boolean or undefinedIf set, the user hasn’t yet invoked payments.applygiftcode to claim a subscription gifted directly or in a giveaway by the channel.
id
: stringUnique id for this set of boosts.
userId
: bigint or undefinedId of the user that applied the boost.
giveawayMsgId
: number or undefinedThe message id of the giveaway
date
: numberWhen was the boost applied
expires
: numberWhen does the boost expire
usedGiftSlug
: string or undefinedThe 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 undefinedIf set, this boost counts as multiplier boosts, otherwise it counts as a single boost.