Constructor: connectedBotStarRef
Info about an active affiliate program we have with a Mini App
Attributes:
Name | Type | Required | Description |
---|---|---|---|
revoked | Bool | Optional | 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 |
bot_id | long | Yes | ID of the mini app that created the affiliate program |
commission_permille | int | Yes | The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_id |
duration_months | int | Optional | Number of months the program will be active; if not set, there is no expiration date. |
participants | long | Yes | The number of users that used the affiliate program |
revenue | long | Yes | The number of Telegram Stars that were earned by the affiliate program |
Type: ConnectedBotStarRef
Example:
$connectedBotStarRef = ['_' => 'connectedBotStarRef', 'revoked' => Bool, 'url' => 'string', 'date' => int, 'bot_id' => long, 'commission_permille' => int, 'duration_months' => int, 'participants' => long, 'revenue' => long];