From 5f5d3355e3fb48f7a8c8cbb9d7a83d08bb15cf5b Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 25 Mar 2020 00:59:38 +0300 Subject: [PATCH] Fix checkDatabaseEncryptionKey usage in examples. GitOrigin-RevId: 854debfb6f9ec64bc44a19200fdc2f72e39dc6f1 --- example/python/tdjson_example.py | 2 +- example/swift/src/main.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/python/tdjson_example.py b/example/python/tdjson_example.py index 884ab547..ac034800 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 6060981b..06eaa9ce 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: ")