Leave a bot's affiliate program »
Method schema is available as of layer 195. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
revoked | flags.0?true | If set, leaves the bot's affiliate program |
peer | InputPeer | The peer that was affiliated |
link | string | The affiliate link to revoke |
Code | Type | Description |
---|---|---|
400 | STARREF_HASH_REVOKED | The specified affiliate link was already revoked. |
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.