Skip to content

getPrivacy

Sahri Riza Umami edited this page Jun 9, 2017 · 5 revisions

Returns current privacy settings.

getPrivacy(key)
Option Description
key Privacy key. The keys are UserStatus and ChatInvite.

Example

  • Who can see your Last Seen time?

    getPrivacy('UserStatus')

    Response:

      {
      ID = "PrivacyRules",
      rules_ = {
        [0] = {
          ID = "PrivacyRuleAllowAll"
        }
      }
    }
  • Who can add me to group chats?

    getPrivacy('ChatInvite')

    Response:

    {
      ID = "PrivacyRules",
      rules_ = {
        [0] = {
          ID = "PrivacyRuleAllowContacts"
        }
      }
    }

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally