public static class TdApi.GetSavedMessagesTopicHistory extends TdApi.Function<TdApi.Messages>
Returns Messages
| 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 up to 99 to get additionally some newer messages.
|
long |
savedMessagesTopicId
Identifier of Saved Messages topic which messages will be fetched.
|
| Constructor and Description |
|---|
GetSavedMessagesTopicHistory()
Default constructor for a function, which returns messages in a Saved Messages topic.
|
GetSavedMessagesTopicHistory(long savedMessagesTopicId,
long fromMessageId,
int offset,
int limit)
Creates a function, which returns messages in a Saved Messages topic.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long savedMessagesTopicId
public long fromMessageId
public int offset
public int limit
public static final int CONSTRUCTOR
public GetSavedMessagesTopicHistory()
Returns Messages
public GetSavedMessagesTopicHistory(long savedMessagesTopicId,
long fromMessageId,
int offset,
int limit)
Returns Messages
savedMessagesTopicId - Identifier of Saved Messages topic which messages will be fetched.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 up to 99 to get additionally 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 or equal to -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