api.setUserPrivacySettingRules()
Changes user privacy settings
Parameters
SetUserPrivacySettingRulesParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
setting | The privacy setting | |
rules | The new privacy rules |
Returns
ApiResponse interface:interface ApiResponse {
_: 'setUserPrivacySettingRules' | 'error'
airgram: Airgram
request: {
method: 'setUserPrivacySettingRules'
params: SetUserPrivacySettingRulesParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}