Skip to content

Function: searchRecipients() ​

ts
function searchRecipients(
   client, 
   query, 
   mode?
): Promise<object[]>;

Searches the people the account can message, ranked, for a free-text query.

Parameters ​

ParameterTypeDefault value
clientPrivateClientundefined
querystringundefined
mode?RecipientSearchMode'universal'

Returns ​

Promise<object[]>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.