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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The affiliated peer |
Bot | InputUserClass | yes | The bot that offers the affiliate program |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getConnectedStarRefBot#b7d998f0