L
L
LebedevFF2020-07-26 12:07:25
JavaScript
LebedevFF, 2020-07-26 12:07:25

How to solve problems with TDLib on node.js?

There was a need to register an account in telegram from the program on node.js. The application uses the electron library to create a graphical application, and this is where problems begin to arise. When connecting the Developer Tools, it writes about the disconnection, the entire interface, except for the background color specified in the main file, disappears. And the second problem occurs with the creation of the dll file. Maybe somewhere there is already a assembled version?
const { TDLib } = require('tdl-tdlib-ffi')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Barbolin, 2020-07-26
@dronmaxman

What is the problem with building TDlib? Recently I was going to connect a telegram to redmine - everything works. You need more than 4 GB of RAM.

## TDLIB

https://github.com/tdlib/td
sudo apt install -y libssl-dev ccache cmake build-essential gperf zlib1g-dev libreadline-dev

git clone --depth 1 --branch v1.6.0  https://github.com/tdlib/td
sudo apt install -y libssl-dev ccache cmake build-essential gperf zlib1g-dev libreadline-dev

export MAKEFLAGS=-j2 ## CPU count

cd td
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question