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.

Constructors

Constructor Description
inputPrivacyValueAllowContacts Allow only contacts
inputPrivacyValueAllowAll Allow all users
inputPrivacyValueAllowUsers Allow only certain users
inputPrivacyValueDisallowContacts Disallow only contacts
inputPrivacyValueDisallowAll Disallow all
inputPrivacyValueDisallowUsers Disallow only certain users
inputPrivacyValueAllowChatParticipants Allow only participants of certain chats
inputPrivacyValueDisallowChatParticipants Disallow only participants of certain chats
inputPrivacyValueAllowCloseFriends Allow only close friends »
inputPrivacyValueAllowPremium Allow only users with a Premium subscription », currently only usable for inputPrivacyKeyChatInvite.

Related pages

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.

Privacy

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