public static class TdApi.GetChatHistory extends TdApi.Function
Returns Messages
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
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.
|
int |
offset
Specify 0 to get results from exactly the fromMessageId or a negative offset up to 99 to get additionally some newer messages.
|
boolean |
onlyLocal
If true, returns only messages that are available locally without sending network requests.
|
Constructor and Description |
---|
GetChatHistory()
Default constructor for a function, which returns messages in a chat.
|
GetChatHistory(long chatId,
long fromMessageId,
int offset,
int limit,
boolean onlyLocal)
Creates a function, which returns messages in a chat.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long fromMessageId
public int offset
public int limit
public boolean onlyLocal
public static final int CONSTRUCTOR
public GetChatHistory()
Returns Messages
public GetChatHistory(long chatId, long fromMessageId, int offset, int limit, boolean onlyLocal)
Returns Messages
chatId
- Chat identifier.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 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 or equal to -offset. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached.onlyLocal
- If true, returns only messages that are available locally without sending network requests.public int getConstructor()
getConstructor
in class TdApi.Function