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