Skip to main content

phone.getGroupParticipants

Get group call participants.

func (c *Client) PhoneGetGroupParticipants(ctx context.Context, request *PhoneGetGroupParticipantsRequest) (*PhoneGroupParticipants, error)

Calling this method

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

res, err := api.PhoneGetGroupParticipants(ctx, &tg.PhoneGetGroupParticipantsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PhoneGroupParticipants
return nil
})

Parameters

NameTypeRequiredDescription
CallInputGroupCallClassyesGroup call
IDs[]InputPeerClassyesIf specified, will fetch group participant info about the specified peers
Sources[]intyesIf specified, will fetch group participant info about the specified WebRTC source IDs
OffsetstringyesOffset for results, taken from the next_offset field of phone.groupParticipants or the participants_next_offset field of phone.groupCall, initially an empty string. Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in phone groupParticipants if it is empty, to avoid an infinite loop.
LimitintyesMaximum number of results to return, see pagination

Returns

*PhoneGroupParticipants

Possible errors

CodeTypeDescription
400GROUPCALL_INVALIDThe specified group call is invalid.

References