diff --git a/example/python/tdjson_example.py b/example/python/tdjson_example.py index 884ab5477..ac034800c 100644 --- a/example/python/tdjson_example.py +++ b/example/python/tdjson_example.py @@ -112,7 +112,7 @@ while True: # set an encryption key for database to let know TDLib how to open the database if auth_state['@type'] == 'authorizationStateWaitEncryptionKey': - td_send({'@type': 'checkDatabaseEncryptionKey', 'key': 'my_key'}) + td_send({'@type': 'checkDatabaseEncryptionKey', 'encryption_key': ''}) # enter phone number to log in if auth_state['@type'] == 'authorizationStateWaitPhoneNumber': diff --git a/example/swift/src/main.swift b/example/swift/src/main.swift index 6060981b3..06eaa9ce8 100644 --- a/example/swift/src/main.swift +++ b/example/swift/src/main.swift @@ -124,7 +124,7 @@ func updateAuthorizationState(authorizationState: Dictionary) { ]); case "authorizationStateWaitEncryptionKey": - client.queryAsync(query: ["@type":"checkDatabaseEncryptionKey", "key":"cucumber"]) + client.queryAsync(query: ["@type":"checkDatabaseEncryptionKey", "encryption_key":""]) case "authorizationStateWaitPhoneNumber": print("Enter your phone number: ")