-
Notifications
You must be signed in to change notification settings - Fork 122
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
Support tdlib > 1.8.5 #348
Comments
Hi! Thanks for the link to the issue.
To get the version you could do something like this:
|
Ok, thanks for the answer! The commit you are using is really back between the one that I'm using that is working too on the first computer. Anyway, I will compile the 1.8.5 version. And thanks to show me how to use the wrapper to do tdlib calls. |
It is still strange, on the computer with the working version appear to be using tdlib 1.8.5, meanwhile, the commit on my tdlib folder is above 1.8.10. Which mean that I'm using another tdlib version that the one I compiled.. Looking for tdlib files on my system I don't found anymore that the ones I compiled... Strange |
If you don't specify It should log the path to the library that its using, in the logs you should see something like this :
|
I don't see any log. And I thought that is mandatory to build tdlib by your own, I didn't know that |
You can try to also debug it by calling the function that python-telegram uses to find the library: $ python3
>>> from telegram.tdjson import _get_tdjson_lib_path
>>> print(_get_tdjson_lib_path())
/path/to/libtdjson Or set manually the exact path to the version that you want to use with tg = Telegram(
api_id=...,
api_hash=...,
phone=...,
database_encryption_key=...,
...
library_path='/path/to/libtdjson',
) |
Thats nice thanks! |
I met the same problem. Hope python-telegram can be adapted to tdlib 1.8.11! |
Does it currently work with |
Hi, no, it does not work with the new tdlib. Its APIs have changed and the library needs to be adapted to support it. |
python-telegram |
Hi,
This issue is directly related to tdlib/td#2285.
I had a working client with a valid api_id and everything working in my computer, but I bought a new one, so on the moving I tried to move also this project.
I moved the project itself, installed the dependencies, and build the tdlib on the new computer (tdlib/td@d912fd1). Also I moved the tdlib files folder.
But when I try to run my client, with the original client stopped, I got this error:
They said that probably I'm using a different tdlib version, and ask me to use
getOption("version")
.However, I can't really understand how to do this (because I don't understand how the wrapper really works).
Could you kindly point me how to do this call? I found the
_send_data
function on the wrapper, probably I can use something similar to do a call against tdlib asking for the version?Thanks in advance
The text was updated successfully, but these errors were encountered: