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
| Constructor | TL name |
|---|---|
PrivacyKeyAbout | privacyKeyAbout |
PrivacyKeyAddedByPhone | privacyKeyAddedByPhone |
PrivacyKeyBirthday | privacyKeyBirthday |
PrivacyKeyChatInvite | privacyKeyChatInvite |
PrivacyKeyForwards | privacyKeyForwards |
PrivacyKeyNoPaidMessages | privacyKeyNoPaidMessages |
PrivacyKeyPhoneCall | privacyKeyPhoneCall |
PrivacyKeyPhoneNumber | privacyKeyPhoneNumber |
PrivacyKeyPhoneP2P | privacyKeyPhoneP2P |
PrivacyKeyProfilePhoto | privacyKeyProfilePhoto |
PrivacyKeySavedMusic | privacyKeySavedMusic |
PrivacyKeyStarGiftsAutoSave | privacyKeyStarGiftsAutoSave |
PrivacyKeyStatusTimestamp | privacyKeyStatusTimestamp |
PrivacyKeyVoiceMessages | privacyKeyVoiceMessages |