TdlibParameters class

Inheritance

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
TdlibParameters.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

apiHash String
apiHash Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org
read / write
apiId int
apiId Application identifier for Telegram API access, which can be obtained at https://my.telegram.org
read / write
applicationVersion String
applicationVersion Application version; must be non-empty
read / write
databaseDirectory String
databaseDirectory The path to the directory for the persistent database; if empty, the current working directory will be used
read / write
deviceModel String
deviceModel Model of the device the application is being run on; must be non-empty
read / write
enableStorageOptimizer bool
enableStorageOptimizer If set to true, old files will automatically be deleted
read / write
filesDirectory String
filesDirectory 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-only, inherited
ignoreFileNames bool
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
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
systemLanguageCode String
systemLanguageCode IETF language tag of the user's operating system language; must be non-empty
read / write
systemVersion String
systemVersion Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib
read / write
useChatInfoDatabase bool
useChatInfoDatabase If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies use_file_database
read / write
useFileDatabase bool
useFileDatabase If set to true, information about downloaded and uploaded files will be saved between application restarts
read / write
useMessageDatabase bool
useMessageDatabase If set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database
read / write
useSecretChats bool
useSecretChats If set to true, support for secret chats will be enabled
read / write
useTestDc bool
useTestDc If set to true, the Telegram test environment will be used instead of the production environment
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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'tdlibParameters'