Layer 224
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:
PrivacyValueAllowContacts
Allow all contacts
PrivacyValueAllowAll
Allow all users
PrivacyValueAllowUsers
Allow only certain users
PrivacyValueDisallowContacts
Disallow only contacts
PrivacyValueDisallowAll
Disallow all users
PrivacyValueDisallowChatParticipants
Disallow only participants of certain chats
PrivacyValueAllowCloseFriends
Allow only close friends
PrivacyValueDisallowUsers
Disallow only certain users
PrivacyValueAllowPremium
Allow only users with a Premium subscription, currently only usable for input Privacy Key Chat Invite
PrivacyValueAllowChatParticipants
Allow all participants of certain chats
PrivacyValueAllowBots
Allow bots and mini apps
PrivacyValueDisallowBots
Disallow bots and mini apps
Gogram Example
// PrivacyRule is an interface type // You can use any of the following constructors: var _ tg.PrivacyRule = &tg.PrivacyValueAllowContacts{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowAll{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowUsers{} var _ tg.PrivacyRule = &tg.PrivacyValueDisallowContacts{} var _ tg.PrivacyRule = &tg.PrivacyValueDisallowAll{} // ... and 7 more constructors