Layer 227
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:
InputPrivacyValueAllowAll
Allow all users
InputPrivacyValueAllowBots
Allow bots and mini apps
InputPrivacyValueAllowChatParticipants
Allow only participants of certain chats
InputPrivacyValueAllowCloseFriends
Allow only close friends
InputPrivacyValueAllowContacts
Allow only contacts
InputPrivacyValueAllowPremium
Allow only users with a Premium subscription, currently only usable for input Privacy Key Chat Invite
InputPrivacyValueAllowUsers
Allow only certain users
InputPrivacyValueDisallowAll
Disallow all
InputPrivacyValueDisallowBots
Disallow bots and mini apps
InputPrivacyValueDisallowChatParticipants
Disallow only participants of certain chats
InputPrivacyValueDisallowContacts
Disallow only contacts
InputPrivacyValueDisallowUsers
Disallow only certain users
Gogram Example
// InputPrivacyRule is an interface type // You can use any of the following constructors: var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowAll{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowBots{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowChatParticipants{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowCloseFriends{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowContacts{} // ... and 7 more constructors