java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Chat
- Enclosing class:
- TdApi
A chat. (Can be a private chat, basic group, supergroup, or secret
chat.)
-
Field Summary
Modifier and TypeFieldDescriptionInformation about actions which must be possible to do through the chat action bar; may be null if none.Types of reaction, available in the chat.Background set for the chat; may be null if none.Block list to which the chat is added; may be null if none.boolean
True, if the chat messages can be deleted for all users.boolean
True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.boolean
True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.Application-specific data associated with the chat.static final int
Identifier uniquely determining type of the object.boolean
Default value of the disableNotification parameter, used when a message is sent to the chat.A draft of a message in the chat; may be null if none.boolean
True, if chat content can't be saved locally, forwarded, or copied.boolean
True, if the chat has scheduled messages.long
Chat unique identifier.boolean
True, if the chat is marked as unread.boolean
True, if translation of all messages in the chat must be suggested to the user.Last message in the chat; may be null if none or unknown.long
Identifier of the last read incoming message.long
Identifier of the last read outgoing message.int
Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled.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.Notification settings for the chat.Information about pending join requests; may be null if none.Actions that non-administrator chat members are allowed to take in the chat.Chat photo; may be null.Positions of the chat in chat lists.long
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.If non-empty, name of a theme, set for the chat.Chat title.Type of the chat.int
Number of unread messages in the chat.int
Number of unread messages with a mention/reply in the chat.int
Number of messages with unread reactions in the chat.Information about video chat of the chat. -
Constructor Summary
ConstructorDescriptionChat()
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, TdApi.BlockList blockList, boolean hasProtectedContent, boolean isTranslatable, boolean isMarkedAsUnread, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.ChatAvailableReactions availableReactions, int messageAutoDeleteTime, TdApi.ChatBackground background, String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, String clientData) A chat.A chat. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public long idChat 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 if none or unknown. -
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. -
blockList
Block list to which the chat is added; may be null if none. -
hasProtectedContent
public boolean hasProtectedContentTrue, if chat content can't be saved locally, forwarded, or copied. -
isTranslatable
public boolean isTranslatableTrue, if translation of all messages in the chat must be suggested to the user. -
isMarkedAsUnread
public boolean isMarkedAsUnreadTrue, if the chat is marked as unread. -
hasScheduledMessages
public boolean hasScheduledMessagesTrue, if the chat has scheduled messages. -
canBeDeletedOnlyForSelf
public boolean canBeDeletedOnlyForSelfTrue, if the chat messages can be deleted only for the current user while other users will continue to see the messages. -
canBeDeletedForAllUsers
public boolean canBeDeletedForAllUsersTrue, if the chat messages can be deleted for all users. -
canBeReported
public boolean canBeReportedTrue, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto. -
defaultDisableNotification
public boolean defaultDisableNotificationDefault value of the disableNotification parameter, used when a message is sent to the chat. -
unreadCount
public int 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. -
unreadMentionCount
public int unreadMentionCountNumber of unread messages with a mention/reply in the chat. -
unreadReactionCount
public int unreadReactionCountNumber of messages with unread reactions in the chat. -
notificationSettings
Notification settings for the chat. -
availableReactions
Types of reaction, available in the chat. -
messageAutoDeleteTime
public int messageAutoDeleteTimeCurrent message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date. -
background
Background set for the chat; may be null if none. -
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 if none. -
videoChat
Information about video chat of the chat. -
pendingJoinRequests
Information about pending join requests; may be null if none. -
replyMarkupMessageId
public long replyMarkupMessageIdIdentifier 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 if none. -
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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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, TdApi.BlockList blockList, boolean hasProtectedContent, boolean isTranslatable, boolean isMarkedAsUnread, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.ChatAvailableReactions availableReactions, int messageAutoDeleteTime, TdApi.ChatBackground background, 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 if none or unknown.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.blockList
- Block list to which the chat is added; may be null if none.hasProtectedContent
- True, if chat content can't be saved locally, forwarded, or copied.isTranslatable
- True, if translation of all messages in the chat must be suggested to the user.isMarkedAsUnread
- True, if the chat is marked as unread.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.unreadReactionCount
- Number of messages with unread reactions in the chat.notificationSettings
- Notification settings for the chat.availableReactions
- Types of reaction, available in the chat.messageAutoDeleteTime
- Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date.background
- Background set for the chat; may be null if none.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 if none.videoChat
- Information about video chat of the chat.pendingJoinRequests
- Information about pending join requests; may be null if none.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 if none.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.
-
Chat
A chat. (Can be a private chat, basic group, supergroup, or secret chat.)- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-