phone.editGroupCallParticipant
Edit information about a given group call participant. Note: flags.N?Bool parameters can have three possible values:
func (c *Client) PhoneEditGroupCallParticipant(ctx context.Context, request *PhoneEditGroupCallParticipantRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneEditGroupCallParticipant(ctx, &tg.PhoneEditGroupCallParticipantRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | The group call |
Participant | InputPeerClass | yes | The group call participant (can also be the user itself) |
Muted | bool | — | Whether to mute or unmute the specified participant |
Volume | int | — | New volume |
RaiseHand | bool | — | Raise or lower hand |
VideoStopped | bool | — | Start or stop the video stream |
VideoPaused | bool | — | Pause or resume the video stream |
PresentationPaused | bool | — | Pause or resume the screen sharing stream |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | GROUPCALL_FORBIDDEN | The group call has already ended. |
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | PARTICIPANT_JOIN_MISSING | Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall. |
| 400 | RAISE_HAND_FORBIDDEN | You cannot raise your hand. |
| 400 | USER_VOLUME_INVALID | The specified user volume is invalid. |
| 400 | VIDEO_PAUSE_FORBIDDEN | You cannot pause the video stream. |
| 400 | VIDEO_STOP_FORBIDDEN | You cannot stop the video stream. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.editGroupCallParticipant#a5273abf