connectedBotStarRef #

Info about an active affiliate program we have with a Mini App

Layer 223

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;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
revokedflags.1?trueIf set, this affiliation was revoked by the affiliate using payments.editConnectedStarRefBot, or by the affiliation program owner using bots.updateStarRefProgram
urlstringReferral link to be shared
dateintWhen did we affiliate with bot_id
bot_idlongID of the mini app that created the affiliate program
commission_permilleintThe number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_id
duration_monthsflags.0?intNumber of months the program will be active; if not set, there is no expiration date.
participantslongThe number of users that used the affiliate program
revenuelongThe number of Telegram Stars that were earned by the affiliate program

Type #

ConnectedBotStarRef

payments.editConnectedStarRefBot #

Leave a bot's affiliate program »

bots.updateStarRefProgram #

Create, edit or delete the affiliate program of a bot we own

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

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.