Layer 220
method Users

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Call InputGroupCall The group call
Participant InputPeer The group call participant (can also be the user itself)
Muted flags.0?Bool Whether to mute or unmute the specified participant
Volume flags.1?int New volume
RaiseHand flags.2?Bool Raise or lower hand
VideoStopped flags.3?Bool Start or stop the video stream
VideoPaused flags.4?Bool Pause or resume the video stream
PresentationPaused flags.5?Bool Pause or resume the screen sharing stream

Returns

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_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.

Gogram Example

// PhoneEditGroupCallParticipant - using Params struct
result, err := client.PhoneEditGroupCallParticipant(&tg.PhoneEditGroupCallParticipantParams{
    Call: &tg.InputGroupCall{},
    Participant: &tg.InputPeerUser{UserID: int64(123456789)},

    // Optional fields:
    // Muted: true,
    // Volume: 0,
    // RaiseHand: true,
    // VideoStopped: true,
    // ...
})
if err != nil {
    // handle error
}
// result is *tg.Updates