Sha256: e1364b67bda886f3f602661e60edff69c7c79550a53b215382fe716534f157fd

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

module TD::Types
  # Represents a secret chat.
  #
  # @attr id [Integer] Secret chat identifier.
  # @attr user_id [Integer] Identifier of the chat partner.
  # @attr state [TD::Types::SecretChatState] State of the secret chat.
  # @attr is_outbound [Boolean] True, if the chat was created by the current user; otherwise false.
  # @attr 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.
  # @attr 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.
  class SecretChat < Base
    attribute :id, TD::Types::Coercible::Integer
    attribute :user_id, TD::Types::Coercible::Integer
    attribute :state, TD::Types::SecretChatState
    attribute :is_outbound, TD::Types::Bool
    attribute :key_hash, TD::Types::Coercible::String
    attribute :layer, TD::Types::Coercible::Integer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/secret_chat.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/secret_chat.rb