SetTdlibParameters class
Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters.
Returns Ok.
- Inheritance
- Available Extensions
Constructors
- SetTdlibParameters({required bool use_test_dc, String? database_directory, String? files_directory, required bytes database_encryption_key, required bool use_file_database, required bool use_chat_info_database, required bool use_message_database, required bool use_secret_chats, required int api_id, required String api_hash, required String system_language_code, required String device_model, String? system_version, required String application_version, required bool enable_storage_optimizer, required bool ignore_file_names, int? extra, int? clientId})
- Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters
Properties
- api_hash ↔ String
-
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.
read / write
- api_id ↔ int
-
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.
read / write
- application_version ↔ String
-
Application version; must be non-empty.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- database_directory ↔ String?
-
The path to the directory for the persistent database; if empty, the current working directory will be used.
read / write
- database_encryption_key ↔ bytes
-
Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned.
; base64-encoded bytes
List<int>
read / write - device_model ↔ String
-
Model of the device the application is being run on; must be non-empty.
read / write
- enable_storage_optimizer ↔ bool
-
Pass true to automatically delete old files in background.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- files_directory ↔ String?
-
The path to the directory for storing files; if empty, database_directory will be used.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- ignore_file_names ↔ bool
-
Pass true to ignore original file names for downloaded files. Otherwise, downloaded files are saved under names as close as possible to the original name.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- system_language_code ↔ String
-
IETF language tag of the user's operating system language; must be non-empty.
read / write
- system_version ↔ String?
-
Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib.
read / write
- use_chat_info_database ↔ bool
-
Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database.
read / write
- use_file_database ↔ bool
-
Pass true to keep information about downloaded and uploaded files between application restarts.
read / write
- use_message_database ↔ bool
-
Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database.
read / write
- use_secret_chats ↔ bool
-
Pass true to enable support for secret chats.
read / write
- use_test_dc ↔ bool
-
Pass true to use Telegram test environment instead of the production environment.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → SetTdlibParameters? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"setTdlibParameters"