phone.checkGroupCall
Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. Returns an intersection of the source IDs specified in sources, and the source IDs currently being forwarded by the SFU.
func (c *Client) PhoneCheckGroupCall(ctx context.Context, request *PhoneCheckGroupCallRequest) ([]int, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneCheckGroupCall(ctx, &tg.PhoneCheckGroupCallRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // []int
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | Group call |
Sources | []int | yes | Source IDs |
Returns
[]int
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | GROUPCALL_JOIN_MISSING | You haven't joined this group call. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.checkGroupCall#b59cf977