Interface AffiliateProgramParameters

Describes parameters of an affiliate program.

interface AffiliateProgramParameters {
    @type: "affiliateProgramParameters";
    commission_per_mille: number;
    month_count: number;
}

Properties

@type: "affiliateProgramParameters"
commission_per_mille: number

The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner; getOption("affiliate_program_commission_per_mille_min")-getOption("affiliate_program_commission_per_mille_max").

month_count: number

Number of months the program will be active; 0-36. If 0, then the program is eternal.