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:
PrivacyValueAllowAll
Allow all users
PrivacyValueAllowUsers
Allow only certain users
PrivacyValueAllowContacts
Allow all contacts
PrivacyValueDisallowUsers
Disallow only certain users
PrivacyValueAllowChatParticipants
Allow all participants of certain chats
PrivacyValueDisallowAll
Disallow all users
PrivacyValueAllowPremium
Allow only users with a Premium subscription, currently only usable for input Privacy Key Chat Invite
PrivacyValueDisallowChatParticipants
Disallow only participants of certain chats
PrivacyValueAllowCloseFriends
Allow only close friends
PrivacyValueDisallowContacts
Disallow only contacts
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.PrivacyValueAllowAll{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowUsers{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowContacts{} var _ tg.PrivacyRule = &tg.PrivacyValueDisallowUsers{} var _ tg.PrivacyRule = &tg.PrivacyValueAllowChatParticipants{} // ... and 7 more constructors