Tdlib - Telegram api

Hello, I’m trying to run a Telegram API, but I’m always getting an error.
I tried with pre-prepared files that work on Linux on my computer, but I can’t run them in the Addon in the code I wrote.
The Addon works on any operating system on Linux x86-x64, Windows, even on Android. However, on CoreELEC, it gets an error.

Is there a way to maybe create the necessary files?
To create them, the following libraries are needed:

apt-get install make git zlib1g-dev libssl-dev gperf php5-cli cmake g++

But since library installation isn’t possible. Maybe it wiil help if I create CoreELEC from scratch?

Running in docker would be far more easily.

what do you mean? run what in docker? the api?

I don’t know what. You didn’t write exactly what you want. But if you mention PHP package then you will have some work to compile it for CE.

what i need to do?
can i build a CoreELEC version with the packages?
like in:
coreelec:build_ce [CoreELEC Wiki]

i want to gain accses to telegram with tdlib.
and the DLL of “libtdjson.so” get error in coreelec

You need to create package file for missing packages. Which I assume you will not do and no one else will do it for you.

That’s why I suggest docker. But you still didn’t write what EXACTLY you are trying to do. I think you are on your own with this.

i have a addon that in kodi that i can accses to my account and show photos and videos from my chat.
so it crate a http server that i use to send command to.
and to use it you need the files of TDLib build.
tdlib/td: Cross-platform library for building Telegram clients

you can see the exmple of tdlib code in here:
td/example/python/tdjson_example.py at master · tdlib/td
but when i try to to put my “libtdjson.so” that created in linux pc.
it not working.
problem like this means i need to create the TDLib build in the coreelc.

Just do it, compile Your customized CE including tdlib.
It´s a very special case to create a telegram client in CE.
But if You want it, You can do it.

how? i need to create a like this coreelec:build_ce [CoreELEC Wiki] ?
and add the pakeges?

how i do that?