Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

setUserPrivacySettingRules

Sahri Riza Umami edited this page Jul 2, 2018 · 1 revision

Changes user privacy settings.

setUserPrivacySettingRules(setting, rules, allowed_user_ids, restricted_user_ids, callback, data)
Field Type Description
setting string The privacy setting: ShowStatus, AllowChatInvites or AllowCalls.
rules string The new privacy rules: AllowAll, AllowContacts, AllowUsers, RestrictAll, RestrictContacts or RestrictUsers.
allowed_user_ids vector<int32> Allow certain specified users to do something.
restricted_user_ids vector<int32> Restrict all specified users from doing something.

Example

Response:

Frequently Asked Questions
The Functions

Clone this wiki locally