Skip to main content

payments.connectStarRefBot

Join a bot's affiliate program, becoming an affiliate »

func (c *Client) PaymentsConnectStarRefBot(ctx context.Context, request *PaymentsConnectStarRefBotRequest) (*PaymentsConnectedStarRefBots, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PaymentsConnectStarRefBot(ctx, &tg.PaymentsConnectStarRefBotRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PaymentsConnectedStarRefBots
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesThe peer that will become the affiliate: star commissions will be transferred to this peer's star balance.
BotInputUserClassyesThe bot that offers the affiliate program

Returns

*PaymentsConnectedStarRefBots

References