Class TdApi.SearchChats

  • Enclosing class:
    TdApi

    public static class TdApi.SearchChats
    extends TdApi.Function
    Searches for the specified query in the title and username of already known chats, this is an offline request. 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
      SearchChats()
      Default constructor.
      SearchChats​(java.lang.String query, int limit)
      Constructor for initialization of all fields.
    • Field Detail

      • query

        public java.lang.String query
        Query to search for. If the query is empty, returns up to 20 recently found chats.
      • 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

      • SearchChats

        public SearchChats()
        Default constructor.
      • SearchChats

        public SearchChats​(java.lang.String query,
                           int limit)
        Constructor for initialization of all fields.
        Parameters:
        query - Query to search for. If the query is empty, returns up to 20 recently found chats.
        limit - Maximum number of chats to be returned.