public static class TdApi.SearchSecretMessages extends TdApi.Function
Returns FoundMessages
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Identifier of the chat in which to search.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.SearchMessagesFilter |
filter
Additional filter for messages to search; pass null to search for all messages.
|
int |
limit
The maximum number of messages to be returned; up to 100.
|
java.lang.String |
offset
Offset of the first entry to return as received from the previous request; use empty string to get first chunk of results.
|
java.lang.String |
query
Query to search for.
|
Constructor and Description |
---|
SearchSecretMessages()
Default constructor for a function, which searches for messages in secret chats.
|
SearchSecretMessages(long chatId,
java.lang.String query,
java.lang.String offset,
int limit,
TdApi.SearchMessagesFilter filter)
Creates a function, which searches for messages in secret chats.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public java.lang.String query
public java.lang.String offset
public int limit
public TdApi.SearchMessagesFilter filter
public static final int CONSTRUCTOR
public SearchSecretMessages()
Returns FoundMessages
public SearchSecretMessages(long chatId, java.lang.String query, java.lang.String offset, int limit, TdApi.SearchMessagesFilter filter)
Returns FoundMessages
chatId
- Identifier of the chat in which to search. Specify 0 to search in all secret chats.query
- Query to search for. If empty, searchChatMessages must be used instead.offset
- Offset of the first entry to return as received from the previous request; use empty string to get first chunk of results.limit
- The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit.filter
- Additional filter for messages to search; pass null to search for all messages.public int getConstructor()
getConstructor
in class TdApi.Function