Skip to main content

PrivacyKey

This is a boxed type (a TL class): the Go interface tg.PrivacyKeyClass, implemented by the constructors below. A value of this type is one of them — switch on the concrete type to handle it.

switch v := value.(type) {
case *tg.PrivacyKeyAbout: // privacyKeyAbout
case *tg.PrivacyKeyAddedByPhone: // privacyKeyAddedByPhone
case *tg.PrivacyKeyBirthday: // privacyKeyBirthday
case *tg.PrivacyKeyChatInvite: // privacyKeyChatInvite
case *tg.PrivacyKeyForwards: // privacyKeyForwards
case *tg.PrivacyKeyNoPaidMessages: // privacyKeyNoPaidMessages
case *tg.PrivacyKeyPhoneCall: // privacyKeyPhoneCall
case *tg.PrivacyKeyPhoneNumber: // privacyKeyPhoneNumber
case *tg.PrivacyKeyPhoneP2P: // privacyKeyPhoneP2P
case *tg.PrivacyKeyProfilePhoto: // privacyKeyProfilePhoto
case *tg.PrivacyKeySavedMusic: // privacyKeySavedMusic
case *tg.PrivacyKeyStarGiftsAutoSave: // privacyKeyStarGiftsAutoSave
case *tg.PrivacyKeyStatusTimestamp: // privacyKeyStatusTimestamp
case *tg.PrivacyKeyVoiceMessages: // privacyKeyVoiceMessages
}

Constructors

ConstructorTL name
PrivacyKeyAboutprivacyKeyAbout
PrivacyKeyAddedByPhoneprivacyKeyAddedByPhone
PrivacyKeyBirthdayprivacyKeyBirthday
PrivacyKeyChatInviteprivacyKeyChatInvite
PrivacyKeyForwardsprivacyKeyForwards
PrivacyKeyNoPaidMessagesprivacyKeyNoPaidMessages
PrivacyKeyPhoneCallprivacyKeyPhoneCall
PrivacyKeyPhoneNumberprivacyKeyPhoneNumber
PrivacyKeyPhoneP2PprivacyKeyPhoneP2P
PrivacyKeyProfilePhotoprivacyKeyProfilePhoto
PrivacyKeySavedMusicprivacyKeySavedMusic
PrivacyKeyStarGiftsAutoSaveprivacyKeyStarGiftsAutoSave
PrivacyKeyStatusTimestampprivacyKeyStatusTimestamp
PrivacyKeyVoiceMessagesprivacyKeyVoiceMessages

References