Package org.drinkless.tdlib
Class TdApi.DirectMessagesChatTopic
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.DirectMessagesChatTopic
- Enclosing class:
- TdApi
Contains information about a topic in a channel direct messages chat administered by the current user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
True, if the other party can send unpaid messages even if the chat has paid messages enabled.long
Identifier of the chat to which the topic belongs.static final int
Identifier uniquely determining type of the object.A draft of a message in the topic; may be null if none.long
Unique topic identifier.boolean
True, if the forum topic is marked as unread.Last message in the topic; may be null if none or unknown.long
Identifier of the last read incoming message.long
Identifier of the last read outgoing message.long
A parameter used to determine order of the topic in the topic list.Identifier of the user or chat that sends the messages to the topic.long
Number of unread messages in the chat.long
Number of messages with unread reactions in the chat. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about a topic in a channel direct messages chat administered by the current user.DirectMessagesChatTopic
(long chatId, long id, TdApi.MessageSender senderId, long order, boolean canSendUnpaidMessages, boolean isMarkedAsUnread, long unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, long unreadReactionCount, TdApi.Message lastMessage, TdApi.DraftMessage draftMessage) Contains information about a topic in a channel direct messages chat administered by the current user. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns 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 topic belongs. -
id
public long idUnique topic identifier. -
senderId
Identifier of the user or chat that sends the messages to the topic. -
order
public long orderA parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order. -
canSendUnpaidMessages
public boolean canSendUnpaidMessagesTrue, if the other party can send unpaid messages even if the chat has paid messages enabled. -
isMarkedAsUnread
public boolean isMarkedAsUnreadTrue, if the forum topic is marked as unread. -
unreadCount
public long unreadCountNumber of unread messages in the chat. -
lastReadInboxMessageId
public long lastReadInboxMessageIdIdentifier of the last read incoming message. -
lastReadOutboxMessageId
public long lastReadOutboxMessageIdIdentifier of the last read outgoing message. -
unreadReactionCount
public long unreadReactionCountNumber of messages with unread reactions in the chat. -
lastMessage
Last message in the topic; may be null if none or unknown. -
draftMessage
A draft of a message in the topic; may be null if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DirectMessagesChatTopic
public DirectMessagesChatTopic()Contains information about a topic in a channel direct messages chat administered by the current user. -
DirectMessagesChatTopic
public DirectMessagesChatTopic(long chatId, long id, TdApi.MessageSender senderId, long order, boolean canSendUnpaidMessages, boolean isMarkedAsUnread, long unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, long unreadReactionCount, TdApi.Message lastMessage, TdApi.DraftMessage draftMessage) Contains information about a topic in a channel direct messages chat administered by the current user.- Parameters:
chatId
- Identifier of the chat to which the topic belongs.id
- Unique topic identifier.senderId
- Identifier of the user or chat that sends the messages to the topic.order
- A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.canSendUnpaidMessages
- True, if the other party can send unpaid messages even if the chat has paid messages enabled.isMarkedAsUnread
- True, if the forum topic is marked as unread.unreadCount
- Number of unread messages in the chat.lastReadInboxMessageId
- Identifier of the last read incoming message.lastReadOutboxMessageId
- Identifier of the last read outgoing message.unreadReactionCount
- Number of messages with unread reactions in the chat.lastMessage
- Last message in the topic; may be null if none or unknown.draftMessage
- A draft of a message in the topic; may be null if none.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-