Layer 220
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
InputPrivacyValueAllowContacts
Allow only contacts
InputPrivacyValueAllowUsers
Allow only certain users
InputPrivacyValueDisallowUsers
Disallow only certain users
InputPrivacyValueDisallowContacts
Disallow only contacts
InputPrivacyValueDisallowAll
Disallow all
InputPrivacyValueAllowChatParticipants
Allow only participants of certain chats
InputPrivacyValueDisallowChatParticipants
Disallow only participants of certain chats
InputPrivacyValueAllowCloseFriends
Allow only close friends
InputPrivacyValueAllowBots
Allow bots and mini apps
InputPrivacyValueAllowPremium
Allow only users with a Premium subscription, currently only usable for input Privacy Key Chat Invite
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.InputPrivacyValueAllowAll{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowContacts{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueAllowUsers{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueDisallowUsers{} var _ tg.InputPrivacyRule = &tg.InputPrivacyValueDisallowContacts{} // ... and 7 more constructors