TdlibParameters class

Implemented types

Constructors

TdlibParameters({bool useTestDc, String databaseDirectory, String filesDirectory, bool useFileDatabase, bool useChatInfoDatabase, bool useMessageDatabase, bool useSecretChats, int apiId, String apiHash, String systemLanguageCode, String deviceModel, String systemVersion, String applicationVersion, bool enableStorageOptimizer, bool ignoreFileNames})
Contains parameters for TDLib initialization. useTestDc If set to true, the Telegram test environment will be used instead of the production environment. databaseDirectory The path to the directory for the persistent database; if empty, the current working directory will be used. filesDirectory The path to the directory for storing files; if empty, database_directory will be used. useFileDatabase If set to true, information about downloaded and uploaded files will be saved between application restarts. useChatInfoDatabase If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies use_file_database. useMessageDatabase If set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database. useSecretChats If set to true, support for secret chats will be enabled. apiId Application identifier for Telegram API access, which can be obtained at https. apiHash Application identifier hash for Telegram API access, which can be obtained at https. systemLanguageCode IETF language tag of the user's operating system language; must be non-empty. deviceModel Model of the device the application is being run on; must be non-empty. systemVersion Version of the operating system the application is being run on; must be non-empty. applicationVersion Application version; must be non-empty. enableStorageOptimizer If set to true, old files will automatically be deleted. ignoreFileNames 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
TdlibParameters.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

apiHash String
read / write
apiId int
read / write
applicationVersion String
read / write
databaseDirectory String
read / write
deviceModel String
read / write
enableStorageOptimizer bool
read / write
filesDirectory String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
ignoreFileNames bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
systemLanguageCode String
read / write
systemVersion String
read / write
useChatInfoDatabase bool
read / write
useFileDatabase bool
read / write
useMessageDatabase bool
read / write
useSecretChats bool
read / write
useTestDc bool
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"tdlibParameters"