SetPrivacy

---functions---
account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules

Returns

account.PrivacyRules

Parameters

keyInputPrivacyKeyrequired
rulesVector<InputPrivacyRule>required

Example

The examples below use placeholder values. Replace them with real data before running the code.

Example
import asyncio
from ferogram import Client, raw

app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")

async def main():
    await app.start()
    result = await app.raw.account.SetPrivacy(
        key=raw.types.InputPrivacyKeyStatusTimestamp(),
        rules=[raw.types.InputPrivacyValueAllowAll()]
    )
    print(result)

asyncio.run(main())