Package org.drinkless.tdlib
Class TdApi.Chat
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Chat
-
- Enclosing class:
- TdApi
public static class TdApi.Chat extends TdApi.Object
A chat. (Can be a private chat, basic group, supergroup, or secret chat.)
-
-
Field Summary
Fields Modifier and Type Field Description TdApi.ChatActionBaractionBarInformation about actions which must be possible to do through the chat action bar; may be null.booleancanBeDeletedForAllUsersTrue, if the chat messages can be deleted for all users.booleancanBeDeletedOnlyForSelfTrue, if the chat messages can be deleted only for the current user while other users will continue to see the messages.booleancanBeReportedTrue, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.StringclientDataApplication-specific data associated with the chat.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleandefaultDisableNotificationDefault value of the disableNotification parameter, used when a message is sent to the chat.TdApi.DraftMessagedraftMessageA draft of a message in the chat; may be null.booleanhasProtectedContentTrue, if chat content can't be saved locally, forwarded, or copied.booleanhasScheduledMessagesTrue, if the chat has scheduled messages.longidChat unique identifier.booleanisBlockedTrue, if the chat is blocked by the current user and private messages from the chat can't be received.booleanisMarkedAsUnreadTrue, if the chat is marked as unread.TdApi.MessagelastMessageLast message in the chat; may be null.longlastReadInboxMessageIdIdentifier of the last read incoming message.longlastReadOutboxMessageIdIdentifier of the last read outgoing message.TdApi.MessageSendermessageSenderIdIdentifier 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.intmessageTtlCurrent message Time To Live setting (self-destruct timer) for the chat; 0 if not defined.TdApi.ChatNotificationSettingsnotificationSettingsNotification settings for this chat.TdApi.ChatJoinRequestsInfopendingJoinRequestsInformation about pending join requests; may be null.TdApi.ChatPermissionspermissionsActions that non-administrator chat members are allowed to take in the chat.TdApi.ChatPhotoInfophotoChat photo; may be null.TdApi.ChatPosition[]positionsPositions of the chat in chat lists.longreplyMarkupMessageIdIdentifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.StringthemeNameIf non-empty, name of a theme, set for the chat.StringtitleChat title.TdApi.ChatTypetypeType of the chat.intunreadCountNumber of unread messages in the chat.intunreadMentionCountNumber of unread messages with a mention/reply in the chat.TdApi.VideoChatvideoChatInformation about video chat of the chat.
-
Constructor Summary
Constructors Constructor Description Chat()A chat.Chat(long id, TdApi.ChatType type, 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, String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, String clientData)A chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
id
public long id
Chat unique identifier.
-
type
public TdApi.ChatType type
Type of the chat.
-
title
public String title
Chat title.
-
photo
public TdApi.ChatPhotoInfo photo
Chat photo; may be null.
-
permissions
public TdApi.ChatPermissions permissions
Actions that non-administrator chat members are allowed to take in the chat.
-
lastMessage
public TdApi.Message lastMessage
Last message in the chat; may be null.
-
positions
public TdApi.ChatPosition[] positions
Positions of the chat in chat lists.
-
messageSenderId
public 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.
-
hasProtectedContent
public boolean hasProtectedContent
True, if chat content can't be saved locally, forwarded, or copied.
-
isMarkedAsUnread
public boolean isMarkedAsUnread
True, if the chat is marked as unread.
-
isBlocked
public boolean isBlocked
True, if the chat is blocked by the current user and private messages from the chat can't be received.
-
hasScheduledMessages
public boolean hasScheduledMessages
True, if the chat has scheduled messages.
-
canBeDeletedOnlyForSelf
public boolean canBeDeletedOnlyForSelf
True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
-
canBeDeletedForAllUsers
public boolean canBeDeletedForAllUsers
True, if the chat messages can be deleted for all users.
-
canBeReported
public boolean canBeReported
True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.
-
defaultDisableNotification
public boolean defaultDisableNotification
Default value of the disableNotification parameter, used when a message is sent to the chat.
-
unreadCount
public int unreadCount
Number of unread messages in the chat.
-
lastReadInboxMessageId
public long lastReadInboxMessageId
Identifier of the last read incoming message.
-
lastReadOutboxMessageId
public long lastReadOutboxMessageId
Identifier of the last read outgoing message.
-
unreadMentionCount
public int unreadMentionCount
Number of unread messages with a mention/reply in the chat.
-
notificationSettings
public TdApi.ChatNotificationSettings notificationSettings
Notification settings for this chat.
-
messageTtl
public int 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
public String themeName
If non-empty, name of a theme, set for the chat.
-
actionBar
public TdApi.ChatActionBar actionBar
Information about actions which must be possible to do through the chat action bar; may be null.
-
videoChat
public TdApi.VideoChat videoChat
Information about video chat of the chat.
-
pendingJoinRequests
public TdApi.ChatJoinRequestsInfo pendingJoinRequests
Information about pending join requests; may be null.
-
replyMarkupMessageId
public 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.
-
draftMessage
public TdApi.DraftMessage draftMessage
A draft of a message in the chat; may be null.
-
clientData
public String 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.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Chat
public Chat()
A chat. (Can be a private chat, basic group, supergroup, or secret chat.)
-
Chat
public Chat(long id, TdApi.ChatType type, 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, String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, String clientData)A chat. (Can be a private chat, basic group, supergroup, or secret chat.)- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-