Class TdApi.SearchContacts

  • Enclosing class:
    TdApi

    public static class TdApi.SearchContacts
    extends TdApi.Function
    Searches for the specified query in the first names, last names and usernames of the known user contacts.

    Returns Users

    • Field Detail

      • query

        public String query
        Query to search for; may be empty to return all contacts.
      • limit

        public int limit
        The maximum number of users to be returned.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SearchContacts

        public SearchContacts()
        Default constructor for a function, which searches for the specified query in the first names, last names and usernames of the known user contacts.

        Returns Users

      • SearchContacts

        public SearchContacts​(String query,
                              int limit)
        Creates a function, which searches for the specified query in the first names, last names and usernames of the known user contacts.

        Returns Users

        Parameters:
        query - Query to search for; may be empty to return all contacts.
        limit - The maximum number of users to be returned.