public static class TdApi.SearchChats extends TdApi.Function
Returns Chats
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
limit
The maximum number of chats to be returned.
|
java.lang.String |
query
Query to search for.
|
Constructor and Description |
---|
SearchChats()
Default constructor for a function, which searches for the specified query in the title and username of already known chats, this is an offline request.
|
SearchChats(java.lang.String query,
int limit)
Creates a function, which searches for the specified query in the title and username of already known chats, this is an offline request.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String query
public int limit
public static final int CONSTRUCTOR
public SearchChats()
Returns Chats
public SearchChats(java.lang.String query, int limit)
Returns Chats
query
- Query to search for. If the query is empty, returns up to 50 recently found chats.limit
- The maximum number of chats to be returned.public int getConstructor()
getConstructor
in class TdApi.Function