phone.getGroupCall
Get info about a group call and its participants.
func (c *Client) PhoneGetGroupCall(ctx context.Context, request *PhoneGetGroupCallRequest) (*PhoneGroupCall, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneGetGroupCall(ctx, &tg.PhoneGetGroupCallRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PhoneGroupCall
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | The group call |
Limit | int | yes | Maximum number of participants to return in this call (0 to return a server-defined amount). If the number of returned participants is less than groupCall participants_count, paginate through the remaining participants using phone getGroupParticipants, passing to offset the phone.groupCall participants_next_offset returned by this call. This parameter behaves in a different way compared to the limit of phone.getGroupParticipants, see here » for more info. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | GROUPCALL_FORBIDDEN | The group call has already ended. |
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.getGroupCall#41845db