Td Api Set Tdlib Parameters - OTR/Kotlin-Telegram-Client GitHub Wiki

Class TdApi.SetTdlibParameters

Description

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

Constructor Properties

  • useTestDc : Boolean - Pass true to use Telegram test environment 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.
  • databaseEncryptionKey : Array - Encryption key for the database.
  • useFileDatabase : Boolean - Pass true to keep information about downloaded and uploaded files between application restarts.
  • useChatInfoDatabase : Boolean - Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies useFileDatabase.
  • useMessageDatabase : Boolean - Pass true to keep cache of chats and messages between restarts. Implies useChatInfoDatabase.
  • useSecretChats : Boolean - Pass true to enable support for secret chats.
  • 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 - Pass true to automatically delete old files in background.
  • ignoreFileNames : Boolean - 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.

Reference

⚠️ **GitHub.com Fallback** ⚠️