Skip to content
  1. MTKruto/
  2. API Reference/
  3. Methods/
  4. setPrivacySetting
  1. Parameters
  2. Result
  3. Syntax
Methods

setPrivacySetting

Set a privacy setting. USER-ONLY

Parameters

key: PrivacySettingKey

The key of the privacy setting.

rules: InputPrivacyRule[]

The rules to set.

Result

PrivacyRule[]

Syntax

await client.setPrivacySetting(key, rules);
© 2023-2026 MTKruto
TelegramGitHub