public static class TdApi.SearchChatMessages extends TdApi.Function
Returns Messages
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Identifier of the chat in which to search messages.
|
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.
|
long |
fromMessageId
Identifier of the message starting from which history must be fetched; use 0 to get results from the last message.
|
int |
limit
The maximum number of messages to be returned; must be positive and can't be greater than 100.
|
long |
messageThreadId
If not 0, only messages in the specified thread will be returned; supergroups only.
|
int |
offset
Specify 0 to get results from exactly the fromMessageId or a negative offset to get the specified message and some newer messages.
|
java.lang.String |
query
Query to search for.
|
TdApi.MessageSender |
senderId
Identifier of the sender of messages to search for; pass null to search for messages from any sender.
|
Constructor and Description |
---|
SearchChatMessages()
Default constructor for a function, which searches for messages with given words in the chat.
|
SearchChatMessages(long chatId,
java.lang.String query,
TdApi.MessageSender senderId,
long fromMessageId,
int offset,
int limit,
TdApi.SearchMessagesFilter filter,
long messageThreadId)
Creates a function, which searches for messages with given words in the chat.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public java.lang.String query
public TdApi.MessageSender senderId
public long fromMessageId
public int offset
public int limit
public TdApi.SearchMessagesFilter filter
public long messageThreadId
public static final int CONSTRUCTOR
public SearchChatMessages()
Returns Messages
public SearchChatMessages(long chatId, java.lang.String query, TdApi.MessageSender senderId, long fromMessageId, int offset, int limit, TdApi.SearchMessagesFilter filter, long messageThreadId)
Returns Messages
chatId
- Identifier of the chat in which to search messages.query
- Query to search for.senderId
- Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats.fromMessageId
- Identifier of the message starting from which history must be fetched; use 0 to get results from the last message.offset
- Specify 0 to get results from exactly the fromMessageId or a negative offset to get the specified message and some newer messages.limit
- The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset. 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.messageThreadId
- If not 0, only messages in the specified thread will be returned; supergroups only.public int getConstructor()
getConstructor
in class TdApi.Function