Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.UserPrivacySetting
Synopsis
- data UserPrivacySetting
- = UserPrivacySettingShowStatus
- | UserPrivacySettingShowProfilePhoto
- | UserPrivacySettingShowLinkInForwardedMessages
- | UserPrivacySettingShowPhoneNumber
- | UserPrivacySettingShowBio
- | UserPrivacySettingShowBirthdate
- | UserPrivacySettingAllowChatInvites
- | UserPrivacySettingAllowCalls
- | UserPrivacySettingAllowPeerToPeerCalls
- | UserPrivacySettingAllowFindingByPhoneNumber
- | UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages
- | UserPrivacySettingAutosaveGifts
- | UserPrivacySettingAllowUnpaidMessages
Documentation
data UserPrivacySetting Source #
Describes available user privacy settings
Constructors
UserPrivacySettingShowStatus | A privacy setting for managing whether the user's online status is visible |
UserPrivacySettingShowProfilePhoto | A privacy setting for managing whether the user's profile photo is visible |
UserPrivacySettingShowLinkInForwardedMessages | A privacy setting for managing whether a link to the user's account is included in forwarded messages |
UserPrivacySettingShowPhoneNumber | A privacy setting for managing whether the user's phone number is visible |
UserPrivacySettingShowBio | A privacy setting for managing whether the user's bio is visible |
UserPrivacySettingShowBirthdate | A privacy setting for managing whether the user's birthdate is visible |
UserPrivacySettingAllowChatInvites | A privacy setting for managing whether the user can be invited to chats |
UserPrivacySettingAllowCalls | A privacy setting for managing whether the user can be called |
UserPrivacySettingAllowPeerToPeerCalls | A privacy setting for managing whether peer-to-peer connections can be used for calls |
UserPrivacySettingAllowFindingByPhoneNumber | A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to "Allow contacts" or "Allow all" |
UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages | A privacy setting for managing whether the user can receive voice and video messages in private chats; for Telegram Premium users only |
UserPrivacySettingAutosaveGifts | A privacy setting for managing whether received gifts are automatically shown on the user's profile page |
UserPrivacySettingAllowUnpaidMessages | A privacy setting for managing whether the user can receive messages without additional payment |
Instances
FromJSON UserPrivacySetting Source # | |
Defined in TD.Data.UserPrivacySetting Methods parseJSON :: Value -> Parser UserPrivacySetting # parseJSONList :: Value -> Parser [UserPrivacySetting] # | |
ToJSON UserPrivacySetting Source # | |
Defined in TD.Data.UserPrivacySetting Methods toJSON :: UserPrivacySetting -> Value # toEncoding :: UserPrivacySetting -> Encoding # toJSONList :: [UserPrivacySetting] -> Value # toEncodingList :: [UserPrivacySetting] -> Encoding # | |
Show UserPrivacySetting Source # | |
Defined in TD.Data.UserPrivacySetting Methods showsPrec :: Int -> UserPrivacySetting -> ShowS # show :: UserPrivacySetting -> String # showList :: [UserPrivacySetting] -> ShowS # | |
Eq UserPrivacySetting Source # | |
Defined in TD.Data.UserPrivacySetting Methods (==) :: UserPrivacySetting -> UserPrivacySetting -> Bool # (/=) :: UserPrivacySetting -> UserPrivacySetting -> Bool # | |
ShortShow UserPrivacySetting Source # | |
Defined in TD.Data.UserPrivacySetting Methods shortShow :: UserPrivacySetting -> String Source # |