Skip to main content

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​

NameTypeRequiredDescription
PeerInputPeerClassyesThe affiliated peer
OffsetDateint—If set, returns only results older than the specified unixtime
OffsetLinkstring—Offset for pagination, taken from the last returned connectedBotStarRef.url (initially empty)
LimitintyesMaximum number of results to return, see pagination

Returns​

*PaymentsConnectedStarRefBots

References​