Layer 220
ConnectedBotStarRef
Info about an active affiliate program we have with a Mini App
constructor
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
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Revoked | flags.1?true | If set, this affiliation was revoked by the affiliate using payments. edit Connected Star Ref Bot, or by the affiliation program owner using bots. update Star Ref Program |
| Url | string | Referral link to be shared |
| Date | int | When did we affiliate with bot_id |
| BotId | long | ID of the mini app that created the affiliate program |
| CommissionPermille | int | The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_id |
| DurationMonths | flags.0?int | Number of months the program will be active; if not set, there is no expiration date. |
| Participants | long | The number of users that used the affiliate program |
| Revenue | long | The number of Telegram Stars that were earned by the affiliate program |
Returns
ConnectedBotStarRefGogram Example
// Creating ConnectedBotStarRef constructor obj := &tg.ConnectedBotStarRef{ Url: "...", Date: 0, BotId: int64(0), CommissionPermille: 0, Participants: int64(0), Revenue: int64(0), // Optional fields: // Revoked: true, // DurationMonths: 0, }