haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.AddContact

Synopsis

Documentation

data AddContact Source #

Adds a user to the contact list or edits an existing contact by their user identifier. Returns Ok

Constructors

AddContact 

Fields

  • contact :: Maybe Contact

    The contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored

  • share_phone_number :: Maybe Bool

    Pass true to share the current user's phone number with the new contact. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. Use the field userFullInfo.need_phone_number_privacy_exception to check whether the current user needs to be asked to share their phone number

Instances

Instances details
ToJSON AddContact Source # 
Instance details

Defined in TD.Query.AddContact

Show AddContact Source # 
Instance details

Defined in TD.Query.AddContact

Eq AddContact Source # 
Instance details

Defined in TD.Query.AddContact

ShortShow AddContact Source # 
Instance details

Defined in TD.Query.AddContact