Open PiN73 opened 1 year ago
Issue is fixed by replacing telegram/lib/darwin/libtdjson.dylib
file to Universal 2 version
Universal 2 version can be taken from https://github.com/up9cloud/ios-libtdjson Releases -> libtdjson.xcframework.tar.gz
-> macos-arm64_x86_64/libtdjson.dylib
Thanks, it works! Though to prevent Mac from blocking an unknown lib one also needs to run xattr -r -d com.apple.quarantine telegram/lib/darwin/libtdjson.dylib
.
Issue is fixed by replacing
telegram/lib/darwin/libtdjson.dylib
file to Universal 2 versionUniversal 2 version can be taken from https://github.com/up9cloud/ios-libtdjson Releases ->
libtdjson.xcframework.tar.gz
->macos-arm64_x86_64/libtdjson.dylib
Hi,
I think that provide libtdjson.{dylib,so} is just a way to facilitate the user experience , but the best way would be get tdlib via the package manager.
In any case you don't need to replace file. If it does not work for you you can specify the lib in this way:
Telegram(
api_id='api_id',
api_hash='api_hash',
phone='+31611111111',
database_encryption_key='changekey123',
library_path='your_libtdjson_path_here'
)
I'm getting error on macOS with M1 CPU
python-telegram version: 0.18.0