Skip to main content

connectedBotStarRef

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

type tg.ConnectedBotStarRef struct { /* ... */ }

Fields

NameTypeRequiredDescription
RevokedboolIf set, this affiliation was revoked by the affiliate using payments editConnectedStarRefBot, or by the affiliation program owner using bots updateStarRefProgram
URLstringyesReferral link to be shared
DateintyesWhen did we affiliate with bot_id
BotIDint64yesID of the mini app that created the affiliate program
CommissionPermilleintyesThe number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_id
DurationMonthsintNumber of months the program will be active; if not set, there is no expiration date.
Participantsint64yesThe number of users that used the affiliate program
Revenueint64yesThe number of Telegram Stars that were earned by the affiliate program

References