https://github.com/marshalx/tdlib
A cross-platform library for building Telegram clients with Python 😎
https://github.com/marshalx/tdlib
Last synced: 3 months ago
JSON representation
A cross-platform library for building Telegram clients with Python 😎
- Host: GitHub
- URL: https://github.com/marshalx/tdlib
- Owner: MarshalX
- License: lgpl-3.0
- Created: 2021-07-18T15:02:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T20:58:23.000Z (about 4 years ago)
- Last Synced: 2024-10-19T07:15:34.424Z (12 months ago)
- Language: C++
- Homepage: https://pypi.org/project/tdlib/
- Size: 126 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## tdlib
A cross-platform library for building Telegram clients with Python 😎## Current progress
Working on generator of binding classes using pybind11.
## Issues
For now there are many critical problems... Short descriptions
- `Symbol not found: __lololo` when try to bind non-abstract classes.
For example `contact` or `accountTtl`. Maybe problems with pointers.
I already tried to use tdlib's smart pointer with pybind11.
There is no way to bind templates from C++ to Python.
- `.def_readwrite` doesn't work properly with nested objects.
Again issue can be in templated `array` (just a vector) or `object_ptr`.**You are welcome to help me with resolving this issues!**
## The roadmap in my dreams
- Generate Python binding to all classes and functions from td_api scheme.
- Add binding for `Client`, `ClientManager` and so on...
- Generate Python wrappers for already generated native classes (docs, typehints).
- Generate `.rts` files for Sphinx docs.
- Provide wrapper and helper classes for `Client` to send request to tdlib sync/asynchronously.
- Generate exceptions.
- Provide some high level methods.