Airgram

Guides
/
/
Methods

api.setScopeNotificationSettings()

Changes notification settings for chats of a given type

Parameters SetScopeNotificationSettingsParams:

NameTypeDescription
scope Types of chats for which to change the notification settings
notificationSettings The new notification settings for the given scope
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setScopeNotificationSettings' | 'error'
  airgram: Airgram
  request: {
    method: 'setScopeNotificationSettings'
    params: SetScopeNotificationSettingsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}