java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.TdlibParameters
- Enclosing class:
- TdApi
Contains parameters for TDLib initialization.
-
Field Summary
Modifier and TypeFieldDescriptionApplication identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.int
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.Application version; must be non-empty.static final int
The path to the directory for the persistent database; if empty, the current working directory will be used.Model of the device the application is being run on; must be non-empty.boolean
If set to true, old files will automatically be deleted.The path to the directory for storing files; if empty, databaseDirectory will be used.boolean
If set to true, original file names will be ignored.IETF language tag of the user's operating system language; must be non-empty.Version of the operating system the application is being run on.boolean
If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats.boolean
If set to true, information about downloaded and uploaded files will be saved between application restarts.boolean
If set to true, the library will maintain a cache of chats and messages.boolean
If set to true, support for secret chats will be enabled.boolean
If set to true, the Telegram test environment will be used instead of the production environment. -
Constructor Summary
ConstructorDescriptionContains parameters for TDLib initialization.TdlibParameters
(boolean useTestDc, String databaseDirectory, String filesDirectory, boolean useFileDatabase, boolean useChatInfoDatabase, boolean useMessageDatabase, boolean useSecretChats, int apiId, String apiHash, String systemLanguageCode, String deviceModel, String systemVersion, String applicationVersion, boolean enableStorageOptimizer, boolean ignoreFileNames) Contains parameters for TDLib initialization.TdlibParameters
(DataInput input) Contains parameters for TDLib initialization. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
useTestDc
public boolean useTestDcIf 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, databaseDirectory will be used. -
useFileDatabase
public boolean useFileDatabaseIf set to true, information about downloaded and uploaded files will be saved between application restarts. -
useChatInfoDatabase
public boolean useChatInfoDatabaseIf set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies useFileDatabase. -
useMessageDatabase
public boolean useMessageDatabaseIf set to true, the library will maintain a cache of chats and messages. Implies useChatInfoDatabase. -
useSecretChats
public boolean useSecretChatsIf set to true, support for secret chats will be enabled. -
apiId
public int apiIdApplication identifier for Telegram API access, which can be obtained at https://my.telegram.org. -
apiHash
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org. -
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. If empty, the version is automatically detected by TDLib. -
applicationVersion
Application version; must be non-empty. -
enableStorageOptimizer
public boolean enableStorageOptimizerIf set to true, old files will automatically be deleted. -
ignoreFileNames
public boolean ignoreFileNamesIf 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
TdlibParameters
public TdlibParameters()Contains parameters for TDLib initialization. -
TdlibParameters
public TdlibParameters(boolean useTestDc, String databaseDirectory, String filesDirectory, boolean useFileDatabase, boolean useChatInfoDatabase, boolean useMessageDatabase, boolean useSecretChats, int apiId, String apiHash, String systemLanguageCode, String deviceModel, String systemVersion, String applicationVersion, boolean enableStorageOptimizer, boolean ignoreFileNames) Contains parameters for TDLib initialization.- Parameters:
useTestDc
- boolean If set to true, the Telegram test environment will be used instead of the production environment.databaseDirectory
- String The path to the directory for the persistent database; if empty, the current working directory will be used.filesDirectory
- String The path to the directory for storing files; if empty, databaseDirectory will be used.useFileDatabase
- boolean If set to true, information about downloaded and uploaded files will be saved between application restarts.useChatInfoDatabase
- boolean If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies useFileDatabase.useMessageDatabase
- boolean If set to true, the library will maintain a cache of chats and messages. Implies useChatInfoDatabase.useSecretChats
- boolean If set to true, support for secret chats will be enabled.apiId
- int Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.apiHash
- String Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.systemLanguageCode
- String IETF language tag of the user's operating system language; must be non-empty.deviceModel
- String Model of the device the application is being run on; must be non-empty.systemVersion
- String Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib.applicationVersion
- String Application version; must be non-empty.enableStorageOptimizer
- boolean If set to true, old files will automatically be deleted.ignoreFileNames
- boolean 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
Contains parameters for TDLib initialization.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-