public static class TdApi.GetMessageThreadHistory 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.
|
long |
messageId
Message identifier, which thread history needs to be returned.
|
int |
offset
Specify 0 to get results from exactly the fromMessageId or a negative offset up to 99 to get additionally some newer messages.
|
Constructor and Description |
---|
GetMessageThreadHistory()
Default constructor for a function, which returns messages in a message thread of a message.
|
GetMessageThreadHistory(long chatId,
long messageId,
long fromMessageId,
int offset,
int limit)
Creates a function, which returns messages in a message thread of a message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long messageId
public long fromMessageId
public int offset
public int limit
public static final int CONSTRUCTOR
public GetMessageThreadHistory()
Returns Messages
public GetMessageThreadHistory(long chatId, long messageId, long fromMessageId, int offset, int limit)
Returns Messages
chatId
- Chat identifier.messageId
- Message identifier, which thread history needs to be returned.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 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()
getConstructor
in class TdApi.Function