Layer 224
ConnectedBotStarRefObj
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 |
|---|---|---|
| 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 ConnectedBotStarRefObj constructor obj := &tg.ConnectedBotStarRefObj{ Url: "Hello, World!", Date: 42, BotId: int64(1234567890), CommissionPermille: 42, Participants: int64(1234567890), Revenue: int64(1234567890), // Optional fields: // Revoked: true, // DurationMonths: 42, }