Sha256: 8f57dda2d22fbf6696a63b1dcaea44963cbac89a73386e29e718fec428293dfc

Contents?: true

Size: 1006 Bytes

Versions: 3

Compression:

Stored size: 1006 Bytes

Contents

require 'tdlib/version'
require 'dry/configurable'
require 'concurrent-ruby'

module TD
  extend Dry::Configurable

  module_function

  def root_path
    __dir__
  end

  setting :lib_path

  setting :encryption_key

  setting :client do
    setting :api_id, &:to_i
    setting :api_hash
    setting :use_test_dc, false
    setting :database_directory, "#{Dir.home}/.tdlib-ruby/db"
    setting :files_directory, "#{Dir.home}/.tdlib-ruby/data"
    setting :use_file_database, true
    setting :use_chat_info_database, true
    setting :use_secret_chats, true
    setting :use_message_database, true
    setting :system_language_code, 'en'
    setting :device_model, 'Ruby TD client'
    setting :system_version, 'Unknown'
    setting :application_version, '1.0'
    setting :enable_storage_optimizer, true
    setting :ignore_file_names, false
  end
end

require 'tdlib-schema'
require 'tdlib/errors'
require 'tdlib/api'
require 'tdlib/client'
require 'tdlib/update_handler'
require 'tdlib/update_manager'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tdlib-ruby-3.0.2 lib/tdlib-ruby.rb
tdlib-ruby-3.0.1 lib/tdlib-ruby.rb
tdlib-ruby-3.0.0 lib/tdlib-ruby.rb