account.GetPrivacy

class pyrogram.raw.functions.account.GetPrivacy

Get privacy settings of current account

Details:
  • Layer: 223

  • ID: DADBC950

Parameters:

key (InputPrivacyKey) – Peer category whose privacy settings should be fetched

Returns:

account.PrivacyRules

TL Schema

account.getPrivacy#dadbc950
key:InputPrivacyKey

= account.PrivacyRules

Parameter Tree

Example

await app.invoke(
    GetPrivacy(
        key=InputPrivacyKeyStatusTimestamp(),
    )
)