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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The peer that will become the affiliate: star commissions will be transferred to this peer's star balance. |
Bot | InputUserClass | yes | The bot that offers the affiliate program |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
payments.connectStarRefBot#7ed5348a