Layer 220
PrivacyKey
Abstract type representing one of 14 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.PrivacyKey interface.
Use any of the following constructors:
PrivacyKeyStatusTimestamp
Whether we can see the last online timestamp of this user.
PrivacyKeyPhoneP2P
Whether P 2 P connections in phone calls with this user are allowed
PrivacyKeyChatInvite
Whether the user can be invited to chats
PrivacyKeyForwards
Whether messages forwarded from the user will be anonymously forwarded
PrivacyKeyPhoneCall
Whether the user accepts phone calls
PrivacyKeyAddedByPhone
Whether this user can be added to our contact list by their phone number
PrivacyKeyPhoneNumber
Whether the user allows us to see his phone number
PrivacyKeyProfilePhoto
Whether the profile picture of the user is visible
PrivacyKeyBirthday
Whether the user can see our birthday.
PrivacyKeyAbout
Whether people can see your bio
PrivacyKeyNoPaidMessages
Who can send you messages without paying, if paid messages are enabled.
PrivacyKeyStarGiftsAutoSave
Whether received gifts will be automatically displayed on our profile
PrivacyKeyVoiceMessages
Whether the user accepts voice messages
PrivacyKeySavedMusic
No description
Gogram Example
// PrivacyKey is an interface type // You can use any of the following constructors: var _ tg.PrivacyKey = &tg.PrivacyKeyStatusTimestamp{} var _ tg.PrivacyKey = &tg.PrivacyKeyPhoneP2P{} var _ tg.PrivacyKey = &tg.PrivacyKeyChatInvite{} var _ tg.PrivacyKey = &tg.PrivacyKeyForwards{} var _ tg.PrivacyKey = &tg.PrivacyKeyPhoneCall{} // ... and 9 more constructors