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.

Layer 223

privacyValueAllowContacts#fffe1bac = PrivacyRule;
privacyValueAllowAll#65427b82 = PrivacyRule;
privacyValueAllowUsers#b8905fb2 users:Vector<long> = PrivacyRule;
privacyValueDisallowContacts#f888fa1a = PrivacyRule;
privacyValueDisallowAll#8b73e763 = PrivacyRule;
privacyValueDisallowUsers#e4621141 users:Vector<long> = PrivacyRule;
privacyValueAllowChatParticipants#6b134e8e chats:Vector<long> = PrivacyRule;
privacyValueDisallowChatParticipants#41c87565 chats:Vector<long> = PrivacyRule;
privacyValueAllowCloseFriends#f7e8d89b = PrivacyRule;
privacyValueAllowPremium#ece9814b = PrivacyRule;
privacyValueAllowBots#21461b5d = PrivacyRule;
privacyValueDisallowBots#f6a5f82f = PrivacyRule;

Constructors #

ConstructorDescription
privacyValueAllowContactsAllow all contacts
privacyValueAllowAllAllow all users
privacyValueAllowUsersAllow only certain users
privacyValueDisallowContactsDisallow only contacts
privacyValueDisallowAllDisallow all users
privacyValueDisallowUsersDisallow only certain users
privacyValueAllowChatParticipantsAllow all participants of certain chats
privacyValueDisallowChatParticipantsDisallow only participants of certain chats
privacyValueAllowCloseFriendsAllow only close friends »
privacyValueAllowPremiumAllow only users with a Premium subscription », currently only usable for inputPrivacyKeyChatInvite.
privacyValueAllowBotsAllow bots and mini apps
privacyValueDisallowBotsDisallow bots and mini apps

Privacy settings #

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.