Skip to main content

phone.discardGroupCall

Terminate a group call, ending the room for all participants.

func (c *Client) PhoneDiscardGroupCall(ctx context.Context, call InputGroupCallClass) (UpdatesClass, error)

Calling this method

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

res, err := api.PhoneDiscardGroupCall(ctx, call)
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters

NameTypeRequiredDescription
CallInputGroupCallClassyesThe group call to terminate

Returns

UpdatesClass

Possible errors

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

References