Package org.drinkless.tdlib
Class TdApi.MessageThreadInfo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageThreadInfo
- Enclosing class:
- TdApi
Contains information about a message thread.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat to which the message thread belongs.static final intIdentifier uniquely determining type of the object.A draft of a message in the message thread; may be null if none.The messages from which the thread starts.longMessage thread identifier, unique within the chat.Information about the message thread; may be null for forum topic threads.intApproximate number of unread messages in the message thread. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about a message thread.MessageThreadInfo(long chatId, long messageThreadId, TdApi.MessageReplyInfo replyInfo, int unreadMessageCount, TdApi.Message[] messages, TdApi.DraftMessage draftMessage) Contains information about a message thread. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the message thread belongs. -
messageThreadId
public long messageThreadIdMessage thread identifier, unique within the chat. -
replyInfo
Information about the message thread; may be null for forum topic threads. -
unreadMessageCount
public int unreadMessageCountApproximate number of unread messages in the message thread. -
messages
The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing messageId). -
draftMessage
A draft of a message in the message thread; may be null if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageThreadInfo
public MessageThreadInfo()Contains information about a message thread. -
MessageThreadInfo
public MessageThreadInfo(long chatId, long messageThreadId, TdApi.MessageReplyInfo replyInfo, int unreadMessageCount, TdApi.Message[] messages, TdApi.DraftMessage draftMessage) Contains information about a message thread.- Parameters:
chatId- Identifier of the chat to which the message thread belongs.messageThreadId- Message thread identifier, unique within the chat.replyInfo- Information about the message thread; may be null for forum topic threads.unreadMessageCount- Approximate number of unread messages in the message thread.messages- The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing messageId).draftMessage- A draft of a message in the message thread; may be null if none.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-