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 Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      int limit
      Maximum number of users to be returned.
      java.lang.String query
      Query to search for; can be empty to return all contacts.
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchContacts()
      Default constructor.
      SearchContacts​(java.lang.String query, int limit)
      Constructor for initialization of all fields.
    • Field Detail

      • query

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

        public int limit
        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.
      • SearchContacts

        public SearchContacts​(java.lang.String query,
                              int limit)
        Constructor for initialization of all fields.
        Parameters:
        query - Query to search for; can be empty to return all contacts.
        limit - Maximum number of users to be returned.