Microsoft Windows [Version 10.0.19045.4291]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
c:\Temp>python3
Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
from ton import TonlibClient
client = TonlibClient()
TonlibClient.enable_unaudited_binaries()
await client.init_tonlib()
File "", line 1
SyntaxError: 'await' outside function
I try to run init.py from examples and I see:
Microsoft Windows [Version 10.0.19045.4291] (c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
c:\Temp>python3 Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.