payments.getConnectedStarRefBots
Fetch all affiliations we have created for a certain peer
func (c *Client) PaymentsGetConnectedStarRefBots(ctx context.Context, request *PaymentsGetConnectedStarRefBotsRequest) (*PaymentsConnectedStarRefBots, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetConnectedStarRefBots(ctx, &tg.PaymentsGetConnectedStarRefBotsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PaymentsConnectedStarRefBots
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The affiliated peer |
OffsetDate | int | — | If set, returns only results older than the specified unixtime |
OffsetLink | string | — | Offset for pagination, taken from the last returned connectedBotStarRef.url (initially empty) |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getConnectedStarRefBots#5869a553