Skip to main content

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​

NameTypeRequiredDescription
CallInputGroupCallClassyesThe group call
ParticipantInputPeerClassyesThe group call participant (can also be the user itself)
Mutedbool—Whether to mute or unmute the specified participant
Volumeint—New volume
RaiseHandbool—Raise or lower hand
VideoStoppedbool—Start or stop the video stream
VideoPausedbool—Pause or resume the video stream
PresentationPausedbool—Pause or resume the screen sharing stream

Returns​

UpdatesClass

Possible errors​

CodeTypeDescription
403GROUPCALL_FORBIDDENThe group call has already ended.
400GROUPCALL_INVALIDThe specified group call is invalid.
400PARTICIPANT_JOIN_MISSINGTrying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall.
400RAISE_HAND_FORBIDDENYou cannot raise your hand.
400USER_VOLUME_INVALIDThe specified user volume is invalid.
400VIDEO_PAUSE_FORBIDDENYou cannot pause the video stream.
400VIDEO_STOP_FORBIDDENYou cannot stop the video stream.

References​