Skip to main content

payments.getConnectedStarRefBot

Fetch info about a specific bot affiliation »

func (c *Client) PaymentsGetConnectedStarRefBot(ctx context.Context, request *PaymentsGetConnectedStarRefBotRequest) (*PaymentsConnectedStarRefBots, error)

Calling this method

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

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

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesThe affiliated peer
BotInputUserClassyesThe bot that offers the affiliate program

Returns

*PaymentsConnectedStarRefBots

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References