Package org.drinkless.tdlib
Class TdApi.SecretChat
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.SecretChat
-
- Enclosing class:
- TdApi
public static class TdApi.SecretChat extends TdApi.Object
Represents a secret chat.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.intidSecret chat identifier.booleanisOutboundTrue, if the chat was created by the current user; otherwise false.byte[]keyHashHash of the currently used key for comparison with the hash of the chat partner's key.intlayerSecret chat layer; determines features supported by the chat partner's application.TdApi.SecretChatStatestateState of the secret chat.longuserIdIdentifier of the chat partner.
-
Constructor Summary
Constructors Constructor Description SecretChat()Represents a secret chat.SecretChat(int id, long userId, TdApi.SecretChatState state, boolean isOutbound, byte[] keyHash, int layer)Represents a secret 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 int id
Secret chat identifier.
-
userId
public long userId
Identifier of the chat partner.
-
state
public TdApi.SecretChatState state
State of the secret chat.
-
isOutbound
public boolean isOutbound
True, if the chat was created by the current user; otherwise false.
-
keyHash
public byte[] keyHash
Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.
-
layer
public int layer
Secret chat layer; determines features supported by the chat partner's application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecretChat
public SecretChat()
Represents a secret chat.
-
SecretChat
public SecretChat(int id, long userId, TdApi.SecretChatState state, boolean isOutbound, byte[] keyHash, int layer)Represents a secret chat.- Parameters:
id- Secret chat identifier.userId- Identifier of the chat partner.state- State of the secret chat.isOutbound- True, if the chat was created by the current user; otherwise false.keyHash- Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.layer- Secret chat layer; determines features supported by the chat partner's application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-