api.setScopeNotificationSettings()
Changes notification settings for chats of a given type
Parameters
SetScopeNotificationSettingsParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
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>
}