Sha256: 0c33fd26fb504753cde91b5316b412e09c6cc13b0bc4a445aaf2730ffaaaf539

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 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 ttl [Integer] Current message Time To Live setting (self-destruct timer) for the chat, in seconds.
  # @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 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.
  # @attr layer [Integer] Secret chat layer; determines features supported by the other client.
  #   Video notes are supported if the layer >= 66.
  class SecretChat < Base
    attribute :id, TD::Types::Integer
    attribute :user_id, TD::Types::Integer
    attribute :state, TD::Types::SecretChatState
    attribute :is_outbound, TD::Types::Bool
    attribute :ttl, TD::Types::Integer
    attribute :key_hash, TD::Types::String
    attribute :layer, TD::Types::Integer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-ruby-2.1.0 lib/tdlib/types/secret_chat.rb
tdlib-ruby-2.0.0 lib/tdlib/types/secret_chat.rb