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 chat partner’s application.
-
#state ⇒ TD::Types::SecretChatState
State of the secret chat.
-
#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 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.
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 chat partner’s application. Video notes are supported if the layer >= 66; nested text entities and underline and strikethrough entities are supported if the layer >= 101.
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 |
#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 |