-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async/await syntax #93
Comments
Hi, No, the library officially doesn't support async/await syntax, you'll have to write a wrapper if you want to use it. |
After seeing this, I thought it should be possible to use async/await with tdlib. So I tried it and I managed to get a low-level async tdjson wrapper working; by low-level I mean: However, looking at the current API of python-telegram and how it's implemented, I don't think it would be possible to support async/await and keep compatibility with the existing API... |
Probably, it should be possible to have both the current synchronous client and a new async API, and the synchronous client could be migrated to use the new async-await API under the hood |
This is what I wrote, in case it helps: https://gist.github.com/nicolas17/c8330da13512c9743a3da4b7c7688a3b |
is it possible to use async/await with the library?
if it is, does any have examples of usage?
it will be greate for me)
The text was updated successfully, but these errors were encountered: