StarRefProgram #

Indo about an affiliate program offered by a bot

Layer 223

starRefProgram#dd0c66f2 flags:# bot_id:long commission_permille:int duration_months:flags.0?int end_date:flags.1?int daily_revenue_per_user:flags.2?StarsAmount = StarRefProgram;

---functions---

bots.updateStarRefProgram#778b5ab3 flags:# bot:InputUser commission_permille:int duration_months:flags.0?int = StarRefProgram;

Constructors #

ConstructorDescription
starRefProgramInfo about an affiliate program offered by a bot

Methods #

MethodDescription
bots.updateStarRefProgramCreate, edit or delete the affiliate program of a bot we own

Affiliate programs #

Developers can open affiliate programs for their mini app – allowing content creators, other mini app developers and any Telegram user to promote it and earn commissions on purchases made by people they referred.