Airgram

Guides
/
/
Methods

api.toggleGroupCallMuteNewParticipants()

Toggles whether new participants of a group call can be unmuted only by administrators of the group call. Requires groupCall.can_toggle_mute_new_participants group call flag

Parameters ToggleGroupCallMuteNewParticipantsParams:

NameTypeDescription
groupCallIdnumber Group call identifier
muteNewParticipantsboolean New value of the mute_new_participants setting
Returns ApiResponse interface:
interface ApiResponse {
  _: 'toggleGroupCallMuteNewParticipants' | 'error'
  airgram: Airgram
  request: {
    method: 'toggleGroupCallMuteNewParticipants'
    params: ToggleGroupCallMuteNewParticipantsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}