SetTdlibParameters class

Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters

Inheritance

Constructors

SetTdlibParameters({String? extra, int? client_id, 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, Bool? enable_storage_optimizer, Bool? ignore_file_names})
SetTdlibParameters.fromMap(Map<String, dynamic> map)

Properties

api_hash string?
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org
getter/setter pair
api_id int32?
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org
getter/setter pair
application_version string?
Application version; must be non-empty
getter/setter pair
client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
database_directory string?
The path to the directory for the persistent database; if empty, the current working directory will be used
getter/setter pair
database_encryption_key bytes?
Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned
getter/setter pair
device_model string?
Model of the device the application is being run on; must be non-empty
getter/setter pair
enable_storage_optimizer Bool?
Pass true to automatically delete old files in background
getter/setter pair
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
files_directory string?
The path to the directory for storing files; if empty, database_directory will be used
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system_language_code string?
IETF language tag of the user's operating system language; must be non-empty
getter/setter pair
system_version string?
Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib
getter/setter pair
tdReturnType String
The return type as String for this function. Currently not used.
no setteroverride
tdType String
JSON object type; maps to the field @type.
no setteroverride
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
getter/setter pair
use_file_database Bool?
Pass true to keep information about downloaded and uploaded files between application restarts
getter/setter pair
use_message_database Bool?
Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database
getter/setter pair
use_secret_chats Bool?
Pass true to enable support for secret chats
getter/setter pair
use_test_dc Bool?
Pass true to use Telegram test environment instead of the production environment
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited