Layer 224
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.
PrivacyKeyChatInvite
Whether the user can be invited to chats
PrivacyKeyPhoneP2P
Whether P 2 P connections in phone calls with this user are allowed
PrivacyKeyPhoneCall
Whether the user accepts phone calls
PrivacyKeyForwards
Whether messages forwarded from the user will be anonymously forwarded
PrivacyKeyProfilePhoto
Whether the profile picture of the user is visible
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
PrivacyKeyVoiceMessages
Whether the user accepts voice messages
PrivacyKeyAbout
Whether people can see your bio
PrivacyKeyBirthday
Whether the user can see our birthday.
PrivacyKeyStarGiftsAutoSave
Whether received gifts will be automatically displayed on our profile
PrivacyKeyNoPaidMessages
Who can send you messages without paying, if paid messages are enabled.
PrivacyKeySavedMusic
Privacy key for saved music
Gogram Example
// PrivacyKey is an interface type // You can use any of the following constructors: var _ tg.PrivacyKey = &tg.PrivacyKeyStatusTimestamp{} var _ tg.PrivacyKey = &tg.PrivacyKeyChatInvite{} var _ tg.PrivacyKey = &tg.PrivacyKeyPhoneP2P{} var _ tg.PrivacyKey = &tg.PrivacyKeyPhoneCall{} var _ tg.PrivacyKey = &tg.PrivacyKeyForwards{} // ... and 9 more constructors