mirror of
https://github.com/lifegpc/pythonscript.git
synced 2026-06-05 11:08:49 +08:00
Add JSON schema files
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
{
|
||||
"$schema": "schema/tdlib.schema.json",
|
||||
"TdlibParameters": { // Detailed information is availabled on https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1tdlib_parameters.html
|
||||
"api_id": 12345678, // Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.
|
||||
"api_hash": "1234567890abcdef0123456789abcdef", // Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.
|
||||
"database_directory": "/path/to/database", // Optional. The path to the directory for the persistent database; if empty, the current working directory will be used.
|
||||
"use_message_database": false // Optional. If set to true, the library will maintain a cache of chats and messages. Warn: TdLib do not provide a function to optimize database.
|
||||
},
|
||||
"encryption_key": "Base64 encoded's key", // Encryption key to check or set up. Need base64 encoded.
|
||||
"encryption_key": "AA==", // Encryption key to check or set up. Need base64 encoded.
|
||||
"proxy": { // Optional. Specify proxy
|
||||
"server": "127.0.0.1",
|
||||
"port": 1080,
|
||||
@@ -21,6 +22,6 @@
|
||||
"BotTdlibParameters": { // Optional. Same as TdlibParameters, but when creating a bot session, these parameters will override parameters in TdlibParameters
|
||||
"database_directory": "/path/to/botdatabase"
|
||||
},
|
||||
"bot_encryption_key": "Base64 encoded's key", // Optional. Encryption key to check or set up for bot. Need base64 encoded.
|
||||
"bot_encryption_key": "AA==", // Optional. Encryption key to check or set up for bot. Need base64 encoded.
|
||||
"bot_token": "12345678:235zoHFG" // Optional. Bot Token, which can be obtained with @BotFather
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user