telegram api constructor · layer 229 · #19a13f71

connectedBotStarRef

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

definition

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

history

present in layers 195–229

idlayers
#19a13f71195–229