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
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | The group call to terminate |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_ALREADY_DISCARDED | The group call was already discarded. |
| 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.discardGroupCall#7a777135