Skip to main content

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

NameTypeRequiredDescription
CallInputGroupCallClassyesThe group call
LimitintyesMaximum 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

*PhoneGroupCall

Possible errors

CodeTypeDescription
403GROUPCALL_FORBIDDENThe group call has already ended.
400GROUPCALL_INVALIDThe specified group call is invalid.

References