IContactsService Interface

graph TD Type["IContactsService"] class Type type-node

Syntax

public interface IContactsService

Methods

Name Value Summary
DeleteContactAsync(IInputUser, CancellationToken) Task<TLink>
Delete user from contacts
DeleteContactsAsync(IReadOnlyList<IInputUser>, CancellationToken) Task<bool>
Delete users from contacts
GetContactsAsync(CancellationToken) Task<TContacts>
Returns the current user’s contact list
GetStatusesAsync(CancellationToken) Task<IReadOnlyList<IContactStatus>>
ImportContactsAsync(IReadOnlyList<TInputPhoneContact>, CancellationToken) Task<IImportedContacts>
Import contacts to the server
SearchUserAsync(string, int, CancellationToken) Task<IFound>
Serch user or chat. By default the limit is 10.