Using 'aiotdlib_generator' with 1.8.8 tl schema
kurkl opened this issue · 5 comments
Hi. I'm trying to parse actual data from tdlib/td/master/td/generate/scheme/td_api.tl
Parsing seems to work, but there may be a problem with code generation.
Change to
DEFAULT_TD_API_SCHEME_URL=https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl
poetry run aiotdlib_generator
from aiotdlib import Client
ImportError: cannot import name 'InternalLinkType' from partially initialized module 'aiotdlib.api.types.internal_link_type' (most likely due to a circular import)
This is the only problem type, if you remove it, then everything works
General question, are you planning to support new versions of TDLib?
Yes I am planning to support the newest version of tdlib. But I feel this will actually need big refactoring in types package to fix circular imports problem and do not break backward compatibility with older versions of aiotdlib.
If you have any ideas, feel free to comment here or open PR.
Just wondering if there is an update on this. Older versions of tdlib seems to have a number of crashes now and I'd like to update. If not, I may have to find or dev an alternative.
Feel free to open a PR with support of the newest tdlib version
You mentioned in a previous comment that it would need refactoring. I am just wondering how this is going.
It is not started yet. Unfortunately, I have no time to do it now