Layer 220
PrivacyRule
Abstract type representing one of 12 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.PrivacyRule interface.
Use any of the following constructors:
PrivacyValueDisallowContacts
Disallow only contacts
PrivacyValueAllowUsers
Allow only certain users
PrivacyValueDisallowAll
Disallow all users
PrivacyValueAllowContacts
Allow all contacts
PrivacyValueAllowAll
Allow all users
PrivacyValueDisallowUsers
Disallow only certain users
PrivacyValueAllowCloseFriends
Allow only close friends
PrivacyValueAllowChatParticipants
Allow all participants of certain chats
PrivacyValueDisallowChatParticipants
Disallow only participants of certain chats
PrivacyValueAllowPremium
Allow only users with a Premium subscription, currently only usable for input Privacy Key Chat Invite
PrivacyValueDisallowBots
Disallow bots and mini apps
PrivacyValueAllowBots
Allow bots and mini apps
Gogram Example
// PrivacyRule is an interface type // You can use any of the following constructors: var _ tg.PrivacyRule = &tg.PrivacyValueDisallowContacts{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowUsers{} var _ tg.PrivacyRule = &tg.PrivacyValueDisallowAll{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowContacts{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowAll{} // ... and 7 more constructors