connect_star_ref_bot()

async Client.connect_star_ref_bot()

Connect a Star affiliate referral bot to a channel.

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

  • bot_id (int | str) – Bot identifier or username to connect.

Returns:

ConnectedStarRefBots – Connected bot information.

Example

res = await app.connect_star_ref_bot(channel_id, "@affiliate_bot")