Class: TD::Types::SecretChat
- Defined in:
- lib/tdlib/types/secret_chat.rb
Overview
Represents a secret chat.
Instance Attribute Summary collapse
-
#id ⇒ Integer
Secret chat identifier.
-
#is_outbound ⇒ Boolean
True, if the chat was created by the current user; otherwise false.
-
#key_hash ⇒ String
Hash of the currently used key for comparison with the hash of the chat partner's key.
-
#layer ⇒ Integer
Secret chat layer; determines features supported by the other client.
-
#state ⇒ TD::Types::SecretChatState
State of the secret chat.
-
#ttl ⇒ Integer
Current message Time To Live setting (self-destruct timer) for the chat, in seconds.
-
#user_id ⇒ Integer
Identifier of the chat partner.
Method Summary
Methods inherited from Base
Instance Attribute Details
#id ⇒ Integer
Secret chat identifier.
17 18 19 |
# File 'lib/tdlib/types/secret_chat.rb', line 17 def id @id end |
#is_outbound ⇒ Boolean
True, if the chat was created by the current user; otherwise false.
17 18 19 |
# File 'lib/tdlib/types/secret_chat.rb', line 17 def is_outbound @is_outbound end |
#key_hash ⇒ String
Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 bytes, which must be used to make a 12x12 square image with a color depth of 4. The first 16 bytes should be used to make a central 8x8 square, while the remaining 20 bytes should be used to construct a 2-pixel-wide border around that square. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.
17 18 19 |
# File 'lib/tdlib/types/secret_chat.rb', line 17 def key_hash @key_hash end |
#layer ⇒ Integer
Secret chat layer; determines features supported by the other client. Video notes are supported if the layer >= 66.
17 18 19 |
# File 'lib/tdlib/types/secret_chat.rb', line 17 def layer @layer end |
#state ⇒ TD::Types::SecretChatState
State of the secret chat.
17 18 19 |
# File 'lib/tdlib/types/secret_chat.rb', line 17 def state @state end |
#ttl ⇒ Integer
Current message Time To Live setting (self-destruct timer) for the chat, in seconds.
17 18 19 |
# File 'lib/tdlib/types/secret_chat.rb', line 17 def ttl @ttl end |
#user_id ⇒ Integer
Identifier of the chat partner.
17 18 19 |
# File 'lib/tdlib/types/secret_chat.rb', line 17 def user_id @user_id end |