Layer 224
InputPrivacyRule
Abstract type representing one of 12 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.InputPrivacyRule interface.
Use any of the following constructors:
InputPrivacyValueAllowContacts
Allow only contacts
InputPrivacyValueAllowAll
Allow all users
InputPrivacyValueAllowUsers
Allow only certain users
InputPrivacyValueDisallowContacts
Disallow only contacts
InputPrivacyValueDisallowAll
Disallow all
InputPrivacyValueDisallowUsers
Disallow only certain users
InputPrivacyValueAllowChatParticipants
Allow only participants of certain chats
InputPrivacyValueDisallowChatParticipants
Disallow only participants of certain chats
InputPrivacyValueAllowCloseFriends
Allow only close friends
InputPrivacyValueAllowPremium
Allow only users with a Premium subscription, currently only usable for input Privacy Key Chat Invite
InputPrivacyValueAllowBots
Allow bots and mini apps
InputPrivacyValueDisallowBots
Disallow bots and mini apps
Gogram Example
// InputPrivacyRule is an interface type // You can use any of the following constructors: var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowContacts{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowAll{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowUsers{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueDisallowContacts{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueDisallowAll{} // ... and 7 more constructors