PrivacyRule

Privacy rules together with privacy keys indicate what can or can't someone do and are specified by a PrivacyRule constructor, and its input counterpart InputPrivacyRule.

See the privacy documentation » for more info.

privacyValueAllowContacts#fffe1bac = PrivacyRule;
privacyValueAllowAll#65427b82 = PrivacyRule;
privacyValueAllowUsers#4d5bbe0c users:Vector<int> = PrivacyRule;
privacyValueDisallowContacts#f888fa1a = PrivacyRule;
privacyValueDisallowAll#8b73e763 = PrivacyRule;
privacyValueDisallowUsers#c7f49b7 users:Vector<int> = PrivacyRule;

Constructors

Constructor Description
privacyValueAllowContacts Allow all contacts
privacyValueAllowAll Allow all users
privacyValueAllowUsers Allow only certain users
privacyValueDisallowContacts Disallow only contacts
privacyValueDisallowAll Disallow all users
privacyValueDisallowUsers Disallow only certain users
privacyValueAllowChatParticipants Allow all participants of certain chats
privacyValueDisallowChatParticipants Disallow only participants of certain chats
privacyValueAllowCloseFriends Allow only close friends »
privacyValueAllowPremium Allow only users with a Premium subscription », currently only usable for inputPrivacyKeyChatInvite.

Related pages

Privacy

Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.

PrivacyRule

Privacy rules together with privacy keys indicate what can or can't someone do and are specified by a PrivacyRule constructor, and its input counterpart InputPrivacyRule.

See the privacy documentation » for more info.

InputPrivacyRule

Privacy rules indicate who can or can't do something and are specified by a PrivacyRule, and its input counterpart InputPrivacyRule.

See the privacy documentation » for more info.