public static class TdApi.SearchSavedMessages extends TdApi.Function<TdApi.FoundChatMessages>
Returns FoundChatMessages
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
fromMessageId
Identifier of the message starting from which messages 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.
|
int |
offset
Specify 0 to get results from exactly the message fromMessageId or a negative offset to get the specified message and some newer messages.
|
java.lang.String |
query
Query to search for.
|
long |
savedMessagesTopicId
If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages.
|
TdApi.ReactionType |
tag
Tag to search for; pass null to return all suitable messages.
|
| Constructor and Description |
|---|
SearchSavedMessages()
Default constructor for a function, which searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only.
|
SearchSavedMessages(long savedMessagesTopicId,
TdApi.ReactionType tag,
java.lang.String query,
long fromMessageId,
int offset,
int limit)
Creates a function, which searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long savedMessagesTopicId
public TdApi.ReactionType tag
public java.lang.String query
public long fromMessageId
public int offset
public int limit
public static final int CONSTRUCTOR
public SearchSavedMessages()
Returns FoundChatMessages
public SearchSavedMessages(long savedMessagesTopicId,
TdApi.ReactionType tag,
java.lang.String query,
long fromMessageId,
int offset,
int limit)
Returns FoundChatMessages
savedMessagesTopicId - If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages.tag - Tag to search for; pass null to return all suitable messages.query - Query to search for.fromMessageId - Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message.offset - Specify 0 to get results from exactly the message 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object