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
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | Group call |
IDs | []InputPeerClass | yes | If specified, will fetch group participant info about the specified peers |
Sources | []int | yes | If specified, will fetch group participant info about the specified WebRTC source IDs |
Offset | string | yes | Offset 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. |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.getGroupParticipants#c558d8ab