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 undefinedAllow the other user to see our phone number?
id
: Raw.TypeInputUserTelegram id of the other user
firstName
: stringFirst name
lastName
: stringLast name
phone
: stringUser’s phone number, may be omitted to simply add the user to the contact list, without a phone number.