public static class TdApi.SetTdlibParameters extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
apiHash
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.
|
int |
apiId
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.
|
java.lang.String |
applicationVersion
Application version; must be non-empty.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
databaseDirectory
The path to the directory for the persistent database; if empty, the current working directory will be used.
|
byte[] |
databaseEncryptionKey
Encryption key for the database.
|
java.lang.String |
deviceModel
Model of the device the application is being run on; must be non-empty.
|
java.lang.String |
filesDirectory
The path to the directory for storing files; if empty, databaseDirectory will be used.
|
java.lang.String |
systemLanguageCode
IETF language tag of the user's operating system language; must be non-empty.
|
java.lang.String |
systemVersion
Version of the operating system the application is being run on.
|
boolean |
useChatInfoDatabase
Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts.
|
boolean |
useFileDatabase
Pass true to keep information about downloaded and uploaded files between application restarts.
|
boolean |
useMessageDatabase
Pass true to keep cache of chats and messages between restarts.
|
boolean |
useSecretChats
Pass true to enable support for secret chats.
|
boolean |
useTestDc
Pass true to use Telegram test environment instead of the production environment.
|
| Constructor and Description |
|---|
SetTdlibParameters()
Default constructor for a function, which sets the parameters for TDLib initialization.
|
SetTdlibParameters(boolean useTestDc,
java.lang.String databaseDirectory,
java.lang.String filesDirectory,
byte[] databaseEncryptionKey,
boolean useFileDatabase,
boolean useChatInfoDatabase,
boolean useMessageDatabase,
boolean useSecretChats,
int apiId,
java.lang.String apiHash,
java.lang.String systemLanguageCode,
java.lang.String deviceModel,
java.lang.String systemVersion,
java.lang.String applicationVersion)
Creates a function, which sets the parameters for TDLib initialization.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean useTestDc
public java.lang.String databaseDirectory
public java.lang.String filesDirectory
public byte[] databaseEncryptionKey
public boolean useFileDatabase
public boolean useChatInfoDatabase
public boolean useMessageDatabase
public boolean useSecretChats
public int apiId
public java.lang.String apiHash
public java.lang.String systemLanguageCode
public java.lang.String deviceModel
public java.lang.String systemVersion
public java.lang.String applicationVersion
public static final int CONSTRUCTOR
public SetTdlibParameters()
Returns Ok
public SetTdlibParameters(boolean useTestDc,
java.lang.String databaseDirectory,
java.lang.String filesDirectory,
byte[] databaseEncryptionKey,
boolean useFileDatabase,
boolean useChatInfoDatabase,
boolean useMessageDatabase,
boolean useSecretChats,
int apiId,
java.lang.String apiHash,
java.lang.String systemLanguageCode,
java.lang.String deviceModel,
java.lang.String systemVersion,
java.lang.String applicationVersion)
Returns Ok
useTestDc - Pass true to use Telegram test environment 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.databaseEncryptionKey - Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned.useFileDatabase - Pass true to keep information about downloaded and uploaded files between application restarts.useChatInfoDatabase - Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies useFileDatabase.useMessageDatabase - Pass true to keep cache of chats and messages between restarts. Implies useChatInfoDatabase.useSecretChats - Pass true to enable support for secret chats.apiId - Application 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object