Skip to content

contacts.addContact

Layer 225

Constructor ID: 0xd9ba2e54
Returns: Updates

Parameters

NameTypeDescription
add_phone_privacy_exceptionbool (flags.0, optional)
idInputUser
first_namestring
last_namestring
phonestring
noteTextWithEntities (flags.1, optional)

Example

go
result, err := client.Raw(&tg.AddContactRequest{
    add_phone_privacy_exception: false,
    id: nil, // InputUser
    first_name: "",
    last_name: "",
    phone: "",
    note: nil, // TextWithEntities
})
if err != nil {
    panic(err)
}
print(result)

Released under the Apache-2.0 License.