connectedBotStarRef
Info about an active affiliate program we have with a Mini App
type tg.ConnectedBotStarRef struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Revoked | bool | — | If set, this affiliation was revoked by the affiliate using payments editConnectedStarRefBot, or by the affiliation program owner using bots updateStarRefProgram |
URL | string | yes | Referral link to be shared |
Date | int | yes | When did we affiliate with bot_id |
BotID | int64 | yes | ID of the mini app that created the affiliate program |
CommissionPermille | int | yes | The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_id |
DurationMonths | int | — | Number of months the program will be active; if not set, there is no expiration date. |
Participants | int64 | yes | The number of users that used the affiliate program |
Revenue | int64 | yes | The number of Telegram Stars that were earned by the affiliate program |
References
- Official documentation
- Generated Go reference
- TL definition:
connectedBotStarRef#19a13f71