Raw.ConnectedBotStarRef

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 undefined

    If set, this affiliation was revoked by the affiliate using payments.editconnectedstarrefbot, or by the affiliation program owner using bots.updatestarrefprogram

  • url : string

    Referral link to be shared

  • date : number

    When did we affiliate with botId

  • botId : bigint

    Id of the mini app that created the affiliate program

  • commissionPermille : number

    The number of telegram stars received by the affiliate for each 1000 telegram stars received by botId

  • durationMonths : number or undefined

    Number of months the program will be active; if not set, there is no expiration date.

  • participants : bigint

    The number of users that used the affiliate program

  • revenue : bigint

    The number of telegram stars that were earned by the affiliate program