Raw.contacts.AddContact

Raw.contacts.AddContact

Add an existing telegram user as contact.

contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;
export namespace Raw {
  export namespace contacts {
    export class AddContact {
      constructor(params: {
        addPhonePrivacyException?: boolean;
        id: Raw.TypeInputUser;
        firstName: string;
        lastName: string;
        phone: string;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xe8f463d0

Property

  • addPhonePrivacyException : boolean or undefined

    Allow the other user to see our phone number?

  • id : Raw.TypeInputUser

    Telegram id of the other user

  • firstName : string

    First name

  • lastName : string

    Last name

  • phone : string

    User’s phone number, may be omitted to simply add the user to the contact list, without a phone number.

Results

Raw.TypeUpdates