telegram api type · layer 229

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.

constructors (12)

constructoriddescription
privacyValueAllowContacts#fffe1bacAllow all contacts
privacyValueAllowAll#65427b82Allow all users
privacyValueAllowUsers#b8905fb2Allow only certain users
privacyValueDisallowContacts#f888fa1aDisallow only contacts
privacyValueDisallowAll#8b73e763Disallow all users
privacyValueDisallowUsers#e4621141Disallow only certain users
privacyValueAllowChatParticipants#6b134e8eAllow all participants of certain chats
privacyValueDisallowChatParticipants#41c87565Disallow only participants of certain chats
privacyValueAllowCloseFriends#f7e8d89bAllow only close friends »
privacyValueAllowPremium#ece9814bAllow only users with a Premium subscription », currently only usable for inputPrivacyKeyChatInvite.
privacyValueAllowBots#21461b5dAllow bots and mini apps
privacyValueDisallowBots#f6a5f82fDisallow bots and mini apps

used by (3)