# payments.connectedStarRefBots

Active [affiliations](/api/bots/referrals.md#becoming-an-affiliate)

```tl
payments.connectedStarRefBots#98d5ea1d count:int connected_bots:Vector<ConnectedBotStarRef> users:Vector<User> = payments.ConnectedStarRefBots;
```

### Parameters

| Name | Type | Description |
| --- | :---: | --- |
| **count** | [int](/type/int.md) | Total number of active affiliations |
| **connected\_bots** | [Vector](/type/Vector%20t)&lt;[ConnectedBotStarRef](/type/ConnectedBotStarRef.md)&gt; | The affiliations |
| **users** | [Vector](/type/Vector%20t)&lt;[User](/type/User.md)&gt; | Peers mentioned in `connected_bots` |

### Type
[payments.ConnectedStarRefBots](/type/payments.ConnectedStarRefBots.md)

### Related pages

#### [Affiliate programs](/api/bots/referrals.md)
Developers can open affiliate programs for their mini app – allowing content creators, other mini app developers and any Telegram user to promote it and earn commissions on purchases made by people they referred.