PrivacyKey#

class pyrogram.raw.base.PrivacyKey#

Privacy keys together with privacy rules » indicate what can or can’t someone do and are specified by a PrivacyKey constructor, and its input counterpart InputPrivacyKey.

Constructors:

This base type has 9 constructors available.

PrivacyKeyAddedByPhone

Whether this user can be added to our contact list by their phone number.

PrivacyKeyChatInvite

Whether the user can be invited to chats.

PrivacyKeyForwards

Whether messages forwarded from the user will be anonymously forwarded.

PrivacyKeyPhoneCall

Whether the user accepts phone calls.

PrivacyKeyPhoneNumber

Whether the user allows us to see his phone number.

PrivacyKeyPhoneP2P

Whether P2P connections in phone calls with this user are allowed.

PrivacyKeyProfilePhoto

Whether the profile picture of the user is visible.

PrivacyKeyStatusTimestamp

Whether we can see the last online timestamp of this user.

PrivacyKeyVoiceMessages

Whether the user accepts voice messages.