Class TdApi.SearchChatsOnServer

  • Enclosing class:
    TdApi

    public static class TdApi.SearchChatsOnServer
    extends TdApi.Function
    Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the chat list.

    Returns Chats

    • Field Summary

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

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

      • query

        public java.lang.String query
        Query to search for.
      • limit

        public int limit
        Maximum number of chats to be returned.
      • CONSTRUCTOR

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

      • SearchChatsOnServer

        public SearchChatsOnServer()
        Default constructor.
      • SearchChatsOnServer

        public SearchChatsOnServer​(java.lang.String query,
                                   int limit)
        Constructor for initialization of all fields.
        Parameters:
        query - Query to search for.
        limit - Maximum number of chats to be returned.