Fix checkAuthenticationEmailCode in Python example.

This commit is contained in:
AYMENJD 2023-01-25 07:06:14 +03:00 committed by Aliaksei Levin
parent b07f99117d
commit 7f8c3e8402

View File

@ -119,7 +119,7 @@ while True:
if auth_state['@type'] == 'authorizationStateWaitEmailCode': if auth_state['@type'] == 'authorizationStateWaitEmailCode':
code = input('Please enter the email authentication code you received: ') code = input('Please enter the email authentication code you received: ')
td_send({'@type': 'checkAuthenticationEmailCode', td_send({'@type': 'checkAuthenticationEmailCode',
'code': {'@type': 'emailAddressAuthenticationCode', 'code' : 'code'}}) 'code': {'@type': 'emailAddressAuthenticationCode', 'code' : code}})
# wait for authorization code # wait for authorization code
if auth_state['@type'] == 'authorizationStateWaitCode': if auth_state['@type'] == 'authorizationStateWaitCode':