首页 » Adds a user to the contact list or edits an existing contact

Adds a user to the contact list or edits an existing contact

Rate this post

It takes a contact object as input, which can include the phone number if known.
The share_phone_number parameter allows the current user to share their phone number with the added contact. TDLib will handle the necessary privacy rule updates if this is set to true.
getContacts:

Retrieves all contacts of the user

Returns a list of User objects, which will include phone numbers if the other user’s privacy settings allow the current user to see them.
searchContacts:

Searches for contacts by query (first name, last name, or username).
This method does not search for users who telegram number database are not already in the contact list. It operates on the existing contacts.
importContacts:

Adds new contacts or edits existing contacts by their phone numbers.

It takes a list of contact objects as input

This method is primarily used ecuador phone number list for effective marketing campaigns for importing a local address book into Telegram.
searchUserByPhoneNumber:

Explicit Sharing: TDLib, like the Bot API, emphasizes explicit user consent for sharing phone numbers. The addContact method includes a share_phone_number parameter, and the user’s privacy settings always govern phone number visibility.
Conditional Retrieval: The getContacts book your list method will only return the phone numbers of other users if those users have configured their privacy settings to allow the current user to see them.

滚动至顶部