Raw.ConnectedBotStarRef
Info about an active affiliate program we have with a mini app
connectedBotStarRef#19a13f71 flags:# revoked:flags.1?true url:string date:int bot_id:long commission_permille:int duration_months:flags.0?int participants:long revenue:long = ConnectedBotStarRef;
export namespace Raw {
export class ConnectedBotStarRef {
constructor(params: {
revoked?: boolean;
url: string;
date: number;
botId: bigint;
commissionPermille: number;
durationMonths?: number;
participants: bigint;
revenue: bigint;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0x19a13f71
Property
revoked
: boolean or undefinedIf set, this affiliation was revoked by the affiliate using payments.editconnectedstarrefbot, or by the affiliation program owner using bots.updatestarrefprogram
url
: stringReferral link to be shared
date
: numberWhen did we affiliate with botId
botId
: bigintId of the mini app that created the affiliate program
commissionPermille
: numberThe number of telegram stars received by the affiliate for each 1000 telegram stars received by botId
durationMonths
: number or undefinedNumber of months the program will be active; if not set, there is no expiration date.
participants
: bigintThe number of users that used the affiliate program
revenue
: bigintThe number of telegram stars that were earned by the affiliate program