-
Notifications
You must be signed in to change notification settings - Fork 123
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
System tdlib #119
Comments
Hi, sure, you can use any tdlib, you need to pass path to the tdjson library when you initialize the Telegram instance: td = Telegram(
...
library_path='path/to/libtdjson.so',
...
) If the path is not specified, the library uses the built-in version, otherwise it uses the specified file: https://github.com/alexander-akhmetov/python-telegram/blob/master/telegram/client.py#L113 |
But that does not really help for packaging here, because for a system package the path should be set inside the lib. |
The main reason behind using the built-in version is that it works out of the box in most cases. If you want to create a package for AUR and use the shared library instead of the built-in, changes are required. I'm not sure what would be the best solution here, but we should keep the standard working out-of-the-box behaviour. |
Okay I patched the AUR to use |
That's great, thank you! By the look of it, should be straightforward to fallback to |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm currently trying to package this lib for the Arch User Repo. And I just noticed that you use your own build of tdlib which is not that nice because it's not possible to verify if it was build from the original source or not. Also it is redundant if multiple applications on the system use tdlib. So I'm trying to find out if I could get this lib to use the tdlib already provided by the system. Is this possible?
The text was updated successfully, but these errors were encountered: