Skip to content

Great work! But how to use it? #37

@mistercx

Description

@mistercx

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.

from ton import TonlibClient
client = TonlibClient()
TonlibClient.enable_unaudited_binaries()
await client.init_tonlib()
File "", line 1
SyntaxError: 'await' outside function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions