Layer 227
method Users
phone.editGroupCallParticipant#a5273abf flags:# call:InputGroupCall participant:InputPeer muted:flags.0?Bool volume:flags.1?int raise_hand:flags.2?Bool video_stopped:flags.3?Bool video_paused:flags.4?Bool presentation_paused:flags.5?Bool = Updates;

Parameters

Name Type Description
Call InputGroupCall Non-RTMP video chat/livestream or conference
Participant InputPeer The group call participant (can also be the user itself)
Muted flags .0? Bool Change the participant's mute state; allowing a forcibly muted participant to self-unmute does not immediately unmute them
Volume flags .1? int New volume, between 1 and 20000; 10000 represents 100%. Without moderation rights, changing another participant's volume affects only local playback
RaiseHand flags .2? Bool Raise or lower hand; only supported in video chats/livestreams
VideoStopped flags .3? Bool Start or stop the current user's video stream
VideoPaused flags .4? Bool Pause or resume the current user's video stream
PresentationPaused flags .5? Bool Pause or resume the current user's presentation stream

Returns

Updates

Gogram Example

// PhoneEditGroupCallParticipant - using Params struct
result, err := client.PhoneEditGroupCallParticipant(&tg.PhoneEditGroupCallParticipantParams{
    Call: &tg.InputGroupCall{},
    Participant: &tg.InputPeerUser{UserID: int64(777000)},
    Muted: nil,
    Volume: nil,
    RaiseHand: nil,
    VideoStopped: nil,
    VideoPaused: nil,
    PresentationPaused: nil,
})
if err != nil {
    // handle error
}
// result is *tg.Updates

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. join Group Call.
400 RAISE_HAND_FORBIDDEN You cannot raise your hand.
400 USER_ID_INVALID The provided user ID is invalid.
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.