SetTdlibParameters
Object Hierarchy:
Description:
public class SetTdlibParameters :
TDObject
Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters
Content:
Properties:
- public string api_hash { get; set construct; }
- public int32 api_id { get; set construct; }
- public string application_version { get; set construct; }
Application version; must be non-empty
- public string database_directory { get; set construct; }
The path to the directory for the persistent database; if empty, the
current working directory will be used
- public Bytes database_encryption_key { get; set construct; }
Encryption key for the database. If the encryption key is invalid,
then an error with code 401 will be returned
- public string device_model { get; set construct; }
Model of the device the application is being run on; must be non-empty
- public string files_directory { get; set construct; }
The path to the directory for storing files; if empty,
database_directory will be used
- public string system_language_code { get; set construct; }
IETF language tag of the user's operating system language; must be non
-empty
- public string system_version { get; set construct; }
Version of the operating system the application is being run on. If
empty, the version is automatically detected by TDLib
- public bool use_chat_info_database { get; set construct; }
Pass true to keep cache of users, basic groups, supergroups, channels
and secret chats between restarts. Implies use_file_database
- public bool use_file_database { get; set construct; }
Pass true to keep information about downloaded and uploaded files
between application restarts
- public bool use_message_database { get; set construct; }
Pass true to keep cache of chats and messages between restarts.
Implies use_chat_info_database
- public bool use_secret_chats { get; set construct; }
Pass true to enable support for secret chats
- public bool use_test_dc { get; set construct; }
Pass true to use Telegram test environment instead of the production
environment
Creation methods:
- public SetTdlibParameters (bool use_test_dc, string database_directory, string files_directory, Bytes database_encryption_key, bool use_file_database, bool use_chat_info_database, bool use_message_database, bool use_secret_chats, int32 api_id, string api_hash, string system_language_code, string device_model, string system_version, string application_version)
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref