connectedBotStarRef

Info about an active affiliate program we have with a Mini App

Constructor schema is available as of layer 195. Switch »

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.editConnectedStarRefBot, or by the affiliation program owner using bots.updateStarRefProgram
url string Referral link to be shared
date int When did we affiliate with bot_id
bot_id long ID of the mini app that created the affiliate program
commission_permille int The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_id
duration_months 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

Type

ConnectedBotStarRef

Related pages

payments.editConnectedStarRefBot

Leave a bot's affiliate program »

bots.updateStarRefProgram

Create, edit or delete the affiliate program of a bot we own

Deep links

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

Affiliate programs

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.

Go up