edit_connected_star_ref_bot()

async Client.edit_connected_star_ref_bot()

Edit or revoke a connected Star affiliate referral link.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Target channel ID.

  • link (str) – The affiliate referral link.

  • revoked (bool, optional) – Whether to revoke the affiliate link.

Returns:

ConnectedStarRefBots – Updated bot information.

Example

res = await app.edit_connected_star_ref_bot(channel_id, link, revoked=True)