payments.editConnectedStarRefBot #

Leave a bot's affiliate program »

Layer 223

payments.connectedStarRefBots#98d5ea1d count:int connected_bots:Vector<ConnectedBotStarRef> users:Vector<User> = payments.ConnectedStarRefBots;
---functions---
payments.editConnectedStarRefBot#e4fca4a3 flags:# revoked:flags.0?true peer:InputPeer link:string = payments.ConnectedStarRefBots;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
revokedflags.0?trueIf set, leaves the bot's affiliate program
peerInputPeerThe peer that was affiliated
linkstringThe affiliate link to revoke

Result #

payments.ConnectedStarRefBots

Only users can use this method #

Possible errors #

CodeTypeDescription
400STARREF_HASH_REVOKEDThe specified affiliate link was already revoked.

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.