public static class TdApi.Chat extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
TdApi.ChatActionBar |
actionBar
Information about actions which must be possible to do through the chat action bar; may be null.
|
boolean |
canBeDeletedForAllUsers
True, if the chat messages can be deleted for all users.
|
boolean |
canBeDeletedOnlyForSelf
True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
|
boolean |
canBeReported
True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.
|
java.lang.String |
clientData
Application-specific data associated with the chat.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
defaultDisableNotification
Default value of the disableNotification parameter, used when a message is sent to the chat.
|
TdApi.DraftMessage |
draftMessage
A draft of a message in the chat; may be null.
|
boolean |
hasProtectedContent
True, if chat content can't be saved locally, forwarded, or copied.
|
boolean |
hasScheduledMessages
True, if the chat has scheduled messages.
|
long |
id
Chat unique identifier.
|
boolean |
isBlocked
True, if the chat is blocked by the current user and private messages from the chat can't be received.
|
boolean |
isMarkedAsUnread
True, if the chat is marked as unread.
|
TdApi.Message |
lastMessage
Last message in the chat; may be null.
|
long |
lastReadInboxMessageId
Identifier of the last read incoming message.
|
long |
lastReadOutboxMessageId
Identifier of the last read outgoing message.
|
TdApi.MessageSender |
messageSenderId
Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender.
|
int |
messageTtl
Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined.
|
TdApi.ChatNotificationSettings |
notificationSettings
Notification settings for this chat.
|
TdApi.ChatJoinRequestsInfo |
pendingJoinRequests
Information about pending join requests; may be null.
|
TdApi.ChatPermissions |
permissions
Actions that non-administrator chat members are allowed to take in the chat.
|
TdApi.ChatPhotoInfo |
photo
Chat photo; may be null.
|
TdApi.ChatPosition[] |
positions
Positions of the chat in chat lists.
|
long |
replyMarkupMessageId
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.
|
java.lang.String |
themeName
If non-empty, name of a theme, set for the chat.
|
java.lang.String |
title
Chat title.
|
TdApi.ChatType |
type
Type of the chat.
|
int |
unreadCount
Number of unread messages in the chat.
|
int |
unreadMentionCount
Number of unread messages with a mention/reply in the chat.
|
TdApi.VideoChat |
videoChat
Information about video chat of the chat.
|
Constructor and Description |
---|
Chat()
A chat.
|
Chat(long id,
TdApi.ChatType type,
java.lang.String title,
TdApi.ChatPhotoInfo photo,
TdApi.ChatPermissions permissions,
TdApi.Message lastMessage,
TdApi.ChatPosition[] positions,
TdApi.MessageSender messageSenderId,
boolean hasProtectedContent,
boolean isMarkedAsUnread,
boolean isBlocked,
boolean hasScheduledMessages,
boolean canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canBeReported,
boolean defaultDisableNotification,
int unreadCount,
long lastReadInboxMessageId,
long lastReadOutboxMessageId,
int unreadMentionCount,
TdApi.ChatNotificationSettings notificationSettings,
int messageTtl,
java.lang.String themeName,
TdApi.ChatActionBar actionBar,
TdApi.VideoChat videoChat,
TdApi.ChatJoinRequestsInfo pendingJoinRequests,
long replyMarkupMessageId,
TdApi.DraftMessage draftMessage,
java.lang.String clientData)
A chat.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long id
public TdApi.ChatType type
public java.lang.String title
@Nullable public TdApi.ChatPhotoInfo photo
public TdApi.ChatPermissions permissions
@Nullable public TdApi.Message lastMessage
public TdApi.ChatPosition[] positions
@Nullable public TdApi.MessageSender messageSenderId
public boolean hasProtectedContent
public boolean isMarkedAsUnread
public boolean isBlocked
public boolean hasScheduledMessages
public boolean canBeDeletedOnlyForSelf
public boolean canBeDeletedForAllUsers
public boolean canBeReported
public boolean defaultDisableNotification
public int unreadCount
public long lastReadInboxMessageId
public long lastReadOutboxMessageId
public int unreadMentionCount
public TdApi.ChatNotificationSettings notificationSettings
public int messageTtl
public java.lang.String themeName
@Nullable public TdApi.ChatActionBar actionBar
public TdApi.VideoChat videoChat
@Nullable public TdApi.ChatJoinRequestsInfo pendingJoinRequests
public long replyMarkupMessageId
@Nullable public TdApi.DraftMessage draftMessage
public java.lang.String clientData
public static final int CONSTRUCTOR
public Chat()
public Chat(long id, TdApi.ChatType type, java.lang.String title, TdApi.ChatPhotoInfo photo, TdApi.ChatPermissions permissions, TdApi.Message lastMessage, TdApi.ChatPosition[] positions, TdApi.MessageSender messageSenderId, boolean hasProtectedContent, boolean isMarkedAsUnread, boolean isBlocked, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, TdApi.ChatNotificationSettings notificationSettings, int messageTtl, java.lang.String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, java.lang.String clientData)
id
- Chat unique identifier.type
- Type of the chat.title
- Chat title.photo
- Chat photo; may be null.permissions
- Actions that non-administrator chat members are allowed to take in the chat.lastMessage
- Last message in the chat; may be null.positions
- Positions of the chat in chat lists.messageSenderId
- Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender.hasProtectedContent
- True, if chat content can't be saved locally, forwarded, or copied.isMarkedAsUnread
- True, if the chat is marked as unread.isBlocked
- True, if the chat is blocked by the current user and private messages from the chat can't be received.hasScheduledMessages
- True, if the chat has scheduled messages.canBeDeletedOnlyForSelf
- True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.canBeDeletedForAllUsers
- True, if the chat messages can be deleted for all users.canBeReported
- True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.defaultDisableNotification
- Default value of the disableNotification parameter, used when a message is sent to the chat.unreadCount
- Number of unread messages in the chat.lastReadInboxMessageId
- Identifier of the last read incoming message.lastReadOutboxMessageId
- Identifier of the last read outgoing message.unreadMentionCount
- Number of unread messages with a mention/reply in the chat.notificationSettings
- Notification settings for this chat.messageTtl
- Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined. TTL is counted from the time message or its content is viewed in secret chats and from the send date in other chats.themeName
- If non-empty, name of a theme, set for the chat.actionBar
- Information about actions which must be possible to do through the chat action bar; may be null.videoChat
- Information about video chat of the chat.pendingJoinRequests
- Information about pending join requests; may be null.replyMarkupMessageId
- Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.draftMessage
- A draft of a message in the chat; may be null.clientData
- Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used.public int getConstructor()
getConstructor
in class TdApi.Object