Class: TD::Types::TdlibParameters
- Defined in:
- lib/tdlib/types/tdlib_parameters.rb
Overview
Contains parameters for TDLib initialization.
Instance Attribute Summary collapse
-
#api_hash ⇒ String?
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.
-
#api_id ⇒ Integer?
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.
-
#application_version ⇒ String
Application version; must be non-empty.
-
#database_directory ⇒ String?
The path to the directory for the persistent database; if empty, the current working directory will be used.
-
#device_model ⇒ String
Model of the device the application is being run on; must be non-empty.
-
#enable_storage_optimizer ⇒ Boolean?
If set to true, old files will automatically be deleted.
-
#files_directory ⇒ String?
The path to the directory for storing files; if empty, database_directory will be used.
-
#ignore_file_names ⇒ Boolean?
If set to true, original file names will be ignored.
-
#system_language_code ⇒ String
IETF language tag of the user's operating system language; must be non-empty.
-
#system_version ⇒ String
Version of the operating system the application is being run on; must be non-empty.
-
#use_chat_info_database ⇒ Boolean?
If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats.
-
#use_file_database ⇒ Boolean?
If set to true, information about downloaded and uploaded files will be saved between application restarts.
-
#use_message_database ⇒ Boolean?
If set to true, the library will maintain a cache of chats and messages.
-
#use_secret_chats ⇒ Boolean?
If set to true, support for secret chats will be enabled.
-
#use_test_dc ⇒ Boolean?
If set to true, the Telegram test environment will be used instead of the production environment.
Method Summary
Methods inherited from Base
Instance Attribute Details
#api_hash ⇒ String?
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def api_hash @api_hash end |
#api_id ⇒ Integer?
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def api_id @api_id end |
#application_version ⇒ String
Application version; must be non-empty.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def application_version @application_version end |
#database_directory ⇒ String?
The path to the directory for the persistent database; if empty, the current working directory will be used.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def database_directory @database_directory end |
#device_model ⇒ String
Model of the device the application is being run on; must be non-empty.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def device_model @device_model end |
#enable_storage_optimizer ⇒ Boolean?
If set to true, old files will automatically be deleted.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def enable_storage_optimizer @enable_storage_optimizer end |
#files_directory ⇒ String?
The path to the directory for storing files; if empty, database_directory will be used.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def files_directory @files_directory end |
#ignore_file_names ⇒ Boolean?
If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def ignore_file_names @ignore_file_names end |
#system_language_code ⇒ String
IETF language tag of the user's operating system language; must be non-empty.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def system_language_code @system_language_code end |
#system_version ⇒ String
Version of the operating system the application is being run on; must be non-empty.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def system_version @system_version end |
#use_chat_info_database ⇒ Boolean?
If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies use_file_database.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def use_chat_info_database @use_chat_info_database end |
#use_file_database ⇒ Boolean?
If set to true, information about downloaded and uploaded files will be saved between application restarts.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def use_file_database @use_file_database end |
#use_message_database ⇒ Boolean?
If set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def end |
#use_secret_chats ⇒ Boolean?
If set to true, support for secret chats will be enabled.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def use_secret_chats @use_secret_chats end |
#use_test_dc ⇒ Boolean?
If set to true, the Telegram test environment will be used instead of the production environment.
29 30 31 |
# File 'lib/tdlib/types/tdlib_parameters.rb', line 29 def use_test_dc @use_test_dc end |